From 36fdeceb6cfa1e2bf9fe1ab90cdba9b2eb585f42 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 9 Oct 2018 14:15:52 -0700 Subject: [PATCH] lib: tweak posting-date-no-amount-balance-assertion error (#894) --- hledger-lib/Hledger/Data/Journal.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger-lib/Hledger/Data/Journal.hs b/hledger-lib/Hledger/Data/Journal.hs index ed6a2069c..61238ecbc 100644 --- a/hledger-lib/Hledger/Data/Journal.hs +++ b/hledger-lib/Hledger/Data/Journal.hs @@ -636,8 +636,8 @@ discriminateByDate tx | True = do when (any (isJust . pdate) $ tpostings tx) $ throwError $ unlines $ - ["Not supported: Transactions with balance assignments " - ,"AND dated postings without amount:\n" + ["Sorry, a dated posting with a balance assignment and no explicit amount is not" + ,"allowed. Write the amount, or remove the posting date or balance assignment:\n" , showTransaction tx] return [(tdate tx, Right $ tx { tpostings = removePrices <$> tpostings tx })]