@@ -333,7 +333,6 @@ setupJournal meconf = do
333
333
334
334
pdesc " a default journal file is readable ?"
335
335
jfile <- defaultJournalPath
336
-
337
336
-- let
338
337
-- args = concat [
339
338
-- ["print"],
@@ -344,7 +343,7 @@ setupJournal meconf = do
344
343
-- XXX can this ignore assertions and config files, like the above ?
345
344
ej <- defaultJournalSafely
346
345
case ej of
347
- Left e -> p N (jfile <> " :\n " <> show e )
346
+ Left estr -> p N (jfile <> " :\n " <> estr )
348
347
Right j@ Journal {.. } -> do
349
348
p Y jfile
350
349
@@ -418,25 +417,18 @@ setupJournal meconf = do
418
417
then p Y (concatMap show accttypes)
419
418
else p N (concatMap show typesnotfound <> " not found; type: queries, bs/cf/is reports may not work" )
420
419
421
- pdesc " balance assertions are checked ?"
422
- let
423
- ignoreassertions = isJust $ conflookup (\ a -> any (== a) [" -I" , " --ignore-assertions" ])
424
- strict = isJust $ conflookup (\ a -> any (== a) [" -s" , " --strict" ])
425
- if
426
- | ignoreassertions && not strict -> i N " use -s to check assertions"
427
- | not strict -> i Y " use -I to ignore assertions"
428
- | otherwise -> i Y " can't ignore assertions (-s in config file)"
429
-
430
420
pdesc " commodities/accounts are checked ?"
421
+ let strict = isJust $ conflookup (\ a -> any (== a) [" -s" , " --strict" ])
431
422
if strict
432
423
then i Y " commodities and accounts must be declared"
433
424
else i N " use -s to check commodities/accounts"
434
425
435
- ------------------------------------------------------------------------------
436
-
437
- -- setupX = do
438
- -- pgroup "x"
439
- -- pdesc "x ?"
426
+ pdesc " balance assertions are checked ?"
427
+ let ignoreassertions = isJust $ conflookup (\ a -> any (== a) [" -I" , " --ignore-assertions" ])
428
+ if
429
+ | ignoreassertions && not strict -> i N " use -s to check assertions"
430
+ | not strict -> i Y " use -I to ignore assertions"
431
+ | otherwise -> i Y " can't ignore assertions (-s in config file)"
440
432
441
433
------------------------------------------------------------------------------
442
434
0 commit comments