Fixes bug 377. Ledger now complains if it is given only a directory as input.
This commit is contained in:
parent
01b8416f24
commit
595a8afa44
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ inline parse_context_t open_for_reading(const path& pathname,
|
||||||
#else
|
#else
|
||||||
filename = filesystem::complete(filename, cwd);
|
filename = filesystem::complete(filename, cwd);
|
||||||
#endif
|
#endif
|
||||||
if (! exists(filename))
|
if (! exists(filename) || is_directory(filename))
|
||||||
throw_(std::runtime_error,
|
throw_(std::runtime_error,
|
||||||
_f("Cannot read journal file %1%") % filename);
|
_f("Cannot read journal file %1%") % filename);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue