web: fix typo in "-f -" warning

This commit is contained in:
Simon Michael 2016-01-25 09:07:37 -08:00
parent c8347b00cf
commit 6fb76d979f

View File

@ -57,7 +57,7 @@ withJournalDo' opts cmd = do
-- https://github.com/simonmichael/hledger/issues/202
-- -f- gives [Error#yesod-core] <stdin>: hGetContents: illegal operation (handle is closed) for some reason
-- Also we may be writing to this file. Just disallow it.
when (f == "-") $ error' "hledger-web doesn't support --f -, please specify a file path"
when (f == "-") $ error' "hledger-web doesn't support -f -, please specify a file path"
readJournalFile Nothing Nothing True f >>=
either error' (cmd opts . journalApplyAliases (aliasesFromOpts $ cliopts_ opts))