Fix missing location in error reports 14/95114/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 10 Feb 2021 13:51:13 +0000 (14:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 10 Feb 2021 14:29:34 +0000 (15:29 +0100)
commit33c07eff30a65dd0889cc08dc88ddad72039321d
treee91bac26d503af06796622179aa4188221e39fad
parent1fcc24ec557499b683b036c9fed6840d1802ccf8
Fix missing location in error reports

There are two places where we fail to propagate location:
- one is a pure omission
- one is a case of bad format
Fix both sites, improving our error reporting.

Change-Id: I65b52c69a6d6d7bb0fd8a9bc3956a2dab51d81c5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlParserStream.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/StrictParsingModeTest.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlToNormalizedNodesTest.java