internal/encoding/yaml: attach a filename position to an empty file "null"
As otherwise any reported errors are missing the filename.
There is no line or column information, which is fine, as this is an
empty YAML file where the null was not actually spelled out.
Seems to slightly improve a JSON Schema decoding error as well.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Iadee9aea7431786fbdfeddb25d2b6a31a77a6f4f
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211414
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>