hledger icon indicating copy to clipboard operation
hledger copied to clipboard

Wrong location of pointer in error message

Open DamienCassou opened this issue 3 years ago • 1 comments

Given this journal in foo.hledger:

2022/01/27 foo
    asset:current                                  3
    ; some comment
    asset:receivables                             -3 = -3

2022/08/27 foo
    asset:current                                 -3
    asset:receivables                              3

I get this error message:

$ hledger -f foo.hledger check recentassertions
hledger: Error: /tmp/foo.hledger:4:54:
  | 2022-01-27 foo
  |     asset:current                   3
3 |     ; some comment
  |                                       ^^^^
  |     asset:receivables              -3 = -3

The recentassertions check is enabled, ...

Note the position of the ^^^^ which seems wrong.

  • hledger --version: 1.27
  • What platform you're on: GNU/Linux

DamienCassou avatar Sep 02 '22 14:09 DamienCassou

Thanks for the report.

simonmichael avatar Sep 02 '22 14:09 simonmichael

Fixed by f5c3bbc.

simonmichael avatar Apr 27 '23 09:04 simonmichael