From 595a8afa44ad3f30995556fbee36ac16024e7c23 Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Sat, 2 Feb 2013 15:59:46 -0700 Subject: Fixes bug 377. Ledger now complains if it is given only a directory as input. --- src/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.h b/src/context.h index 9fe0613b..fd3575ab 100644 --- a/src/context.h +++ b/src/context.h @@ -117,7 +117,7 @@ inline parse_context_t open_for_reading(const path& pathname, #else filename = filesystem::complete(filename, cwd); #endif - if (! exists(filename)) + if (! exists(filename) || is_directory(filename)) throw_(std::runtime_error, _f("Cannot read journal file %1%") % filename); -- cgit v1.2.3