import: also show a message when nothing was imported

This commit is contained in:
Simon Michael 2019-09-13 08:15:42 -07:00
parent dfc0095fed
commit 35a90004ca

View File

@ -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 ?