From 54c60b4de9ab0e7aa1d747ece9617e2e14cac43f Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 23 Jan 2024 21:50:06 -1000 Subject: [PATCH] imp: balance assertions error: clarify wording --- hledger-lib/Hledger/Data/Balancing.hs | 2 +- hledger/test/errors/assertions.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger-lib/Hledger/Data/Balancing.hs b/hledger-lib/Hledger/Data/Balancing.hs index b222d0338..b3f78e780 100644 --- a/hledger-lib/Hledger/Data/Balancing.hs +++ b/hledger-lib/Hledger/Data/Balancing.hs @@ -670,7 +670,7 @@ checkBalanceAssertionOneCommodityB p@Posting{paccount=assertedacct} assertedcomm "%s\n", "Balance assertion failed in %s", "%s at this point, %s, ignoring costs,", - "the expected balance is: %s", + "the asserted balance is: %s", "but the calculated balance is: %s", "(difference: %s)", "To troubleshoot, check this account's running balance with assertions disabled, eg:", diff --git a/hledger/test/errors/assertions.test b/hledger/test/errors/assertions.test index ed86f1526..112dcb25f 100644 --- a/hledger/test/errors/assertions.test +++ b/hledger/test/errors/assertions.test @@ -8,7 +8,7 @@ $ hledger check -f assertions.j Balance assertion failed in a In commodity "" at this point, excluding subaccounts, ignoring costs, -the expected balance is: 1 +the asserted balance is: 1 but the calculated balance is: 0 \(difference: 1\) /