internal/cuetxtar: fix error message formatting
- astcmp: fix backwards error in cmpDisjunction: the error "value is a
disjunction but expected expression is not" had the subject wrong;
it fires when the *expected* expression is a disjunction but the
value is not. Reword to make the cause and fix self-evident.
- inline_err: show absolute line number in position mismatch message.
Relative specs (e.g. -4:7) are resolved to the absolute line before
printing so the reader can compare "unmatched position 14:7" directly
against "actual: 18:7" without doing arithmetic. The raw spec is
still shown in parentheses for reference.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I4826769346ea409de2c23eb602769ba97d4c609a
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1235352
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>