Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

costs cause wrong error position in balance assertion failure messages #2083

Closed
simonmichael opened this issue Sep 9, 2023 · 1 comment
Closed
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. cli Command line parsing, options, arguments and suchlike. journal The journal file format, and its features.

Comments

@simonmichael
Copy link
Owner

simonmichael commented Sep 9, 2023

Costs are ignored when checking balance assertions... but they disrupt the underline when showing an assertion failure.

2023-01-01
    (a)   A 1 @ B 2 = A 3
$ hledger-1.31 -f t.j check
hledger-1.31: Error: /Users/simon/src/hledger/t.j:2:21:
1 | 2023-01-01
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
  |     (a)       A 1 @ B 2 = A 3

Should be:

hledger: Error: /Users/simon/src/hledger/t.j:2:21:
  | 2023-01-01
2 |     (a)       A 1 @ B 2 = A 3
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
@simonmichael simonmichael added A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. cli Command line parsing, options, arguments and suchlike. journal The journal file format, and its features. labels Sep 9, 2023
@simonmichael
Copy link
Owner Author

Fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. cli Command line parsing, options, arguments and suchlike. journal The journal file format, and its features.
Projects
None yet
Development

No branches or pull requests

1 participant