diff options
author | Ivy Foster <iff@escondida.tk> | 2017-10-26 17:10:48 -0500 |
---|---|---|
committer | Ivy Foster <iff@escondida.tk> | 2017-10-26 17:10:48 -0500 |
commit | dab0039680cde39bd50404d1466f3ad50e012b68 (patch) | |
tree | 62035fc56e025dbfbc71c1f9235236c03a44dc57 /src/global.cc | |
parent | b41454477a0576952f77a20ee32c38eb1b9c1442 (diff) | |
download | fork-ledger-dab0039680cde39bd50404d1466f3ad50e012b68.tar.gz fork-ledger-dab0039680cde39bd50404d1466f3ad50e012b68.tar.bz2 fork-ledger-dab0039680cde39bd50404d1466f3ad50e012b68.zip |
src/global.cc: do not parse user-specified init-file twice
Diffstat (limited to 'src/global.cc')
-rw-r--r-- | src/global.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/global.cc b/src/global.cc index b1c45d45..37765a9b 100644 --- a/src/global.cc +++ b/src/global.cc @@ -136,9 +136,7 @@ void global_scope_t::read_init() path init_file; if (HANDLED(init_file_)) { init_file=HANDLER(init_file_).str(); - if (exists(init_file)) { - parse_init(init_file); - } else { + if (!exists(init_file)) { throw_(parse_error, _f("Could not find specified init file %1%") % init_file); } } else { |