internal/core/adt: always print errors in leaf nodes
Without this, inline structs may sometimes drop errors
altogether. Note that this only affects debug printing.
This now shows errors more often, but this seems to
improve readability of test cases, so not bad.
Issue #4102
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I65d87e56c393e606ec2120033705c29442adb562
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1224529
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>