From 35a90004cad0802466339f575c7f6efef929ef0d Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 13 Sep 2019 08:15:42 -0700 Subject: [PATCH] import: also show a message when nothing was imported --- hledger/Hledger/Cli/Commands/Import.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/Commands/Import.hs b/hledger/Hledger/Cli/Commands/Import.hs index 79b832ae6..6543d3e2e 100755 --- a/hledger/Hledger/Cli/Commands/Import.hs +++ b/hledger/Hledger/Cli/Commands/Import.hs @@ -36,7 +36,8 @@ importcmd opts@CliOpts{rawopts_=rawopts,inputopts_=iopts} j = do Left e -> error' e Right newj -> case sortOn tdate $ jtxns newj of - [] -> return () + [] -> do + printf "; no new transactions found.\n\n" newts | dryrun -> do printf "; would import %d new transactions:\n\n" (length newts) -- TODO how to force output here ?