summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/context.h2
1 files changed, 1 insertions, 1 deletions
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);