imp:demo: ignore a broken journal, like other HELP commands

This commit is contained in:
Simon Michael 2023-08-22 07:11:53 +01:00
parent 6a12ff1232
commit dd559226d8

View File

@ -183,7 +183,7 @@ main = do
| Just (cmdmode, cmdaction) <- findBuiltinCommand cmd =
(case True of
-- these commands should not require or read the journal
_ | cmd `elem` ["test","help"] -> cmdaction opts journallesserror
_ | cmd `elem` ["demo","help","test"] -> cmdaction opts journallesserror
-- these commands should create the journal if missing
_ | cmd `elem` ["add","import"] -> do
ensureJournalFileExists . head =<< journalFilePathFromOpts opts