From f3bf7e80b9c2c0f6d0871e21ff09c6efcb07f02c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 6 Dec 2025 10:21:53 -1000 Subject: [PATCH] imp:journal:include: grammar fix in "neither found" error message --- hledger-lib/Hledger/Read.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-lib/Hledger/Read.hs b/hledger-lib/Hledger/Read.hs index 7f4c48d90..0c6cd8fba 100644 --- a/hledger-lib/Hledger/Read.hs +++ b/hledger-lib/Hledger/Read.hs @@ -223,7 +223,7 @@ defaultJournalPath = do exists <- doesFileExist defaultfile if exists then return defaultfile -- else error' $ "LEDGER_FILE is unset and \"" <> defaultfile <> "\" was not found" - else error' $ "neither LEDGER_FILE nor \"" <> defaultfile <> "\" were found" + else error' $ "neither LEDGER_FILE nor \"" <> defaultfile <> "\" was found" else do mf <- headMay <$> expandGlob "." ledgerfile `C.catch` (\(_::C.IOException) -> return []) case mf of