Fix missing location in error reports 18/95118/1
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 15:16:57 +0000 (16:16 +0100)
commit9f8750841e646bf5fdf93890f393ddfa1bf5d9a7
tree3ae127f7bfe680c1e7a4fa52fe62c3869687e7b6
parent7f41bd0651d810544aa1359ce1d762a8185df016
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>
(cherry picked from commit 33c07eff30a65dd0889cc08dc88ddad72039321d)
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