imp: cli: Don't show extra double quotes in missing journal file error. (#1601)

This commit is contained in:
Stephen Morgan 2021-07-14 06:41:51 +10:00 committed by GitHub
parent cf25d7d56d
commit 2df8ad781e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ requireJournalFileExists "-" = return ()
requireJournalFileExists f = do requireJournalFileExists f = do
exists <- doesFileExist f exists <- doesFileExist f
when (not exists) $ do -- XXX might not be a journal file when (not exists) $ do -- XXX might not be a journal file
hPutStr stderr $ "The hledger journal file \"" <> show f <> "\" was not found.\n" hPutStr stderr $ "The hledger journal file \"" <> f <> "\" was not found.\n"
hPutStr stderr "Please create it first, eg with \"hledger add\" or a text editor.\n" hPutStr stderr "Please create it first, eg with \"hledger add\" or a text editor.\n"
hPutStr stderr "Or, specify an existing journal file with -f or LEDGER_FILE.\n" hPutStr stderr "Or, specify an existing journal file with -f or LEDGER_FILE.\n"
exitFailure exitFailure