Rationale: To satisfy the recentassertions check I'm often filling in a bunch of placeholder balance assertions, copy/pasting the correct amount from the balance assertion failure messages. In this situation the difference just repeats the amount in the line above, with opposite sign, which makes it harder for me to interpret the message and to copy-paste the right amount. And more generally I think showing the difference isn't really necessary.
16 lines
321 B
Plaintext
16 lines
321 B
Plaintext
# * assertions error
|
|
# ** 1.
|
|
$ hledger check -f assertions.j
|
|
>2 /hledger: Error: .*assertions.j:4:8:
|
|
\| 2022-01-01
|
|
4 \| a 0 = 1
|
|
\| \^\^\^
|
|
|
|
This balance assertion failed.
|
|
In account: a
|
|
and commodity:
|
|
this balance was asserted: 1
|
|
but the calculated balance is: 0
|
|
/
|
|
>= 1
|