Fix failure source not being reported 47/100947/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 3 May 2022 17:27:59 +0000 (19:27 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 3 May 2022 18:35:15 +0000 (20:35 +0200)
commit6dd19d2f87b3391b95d8087a3ff025c5414fd4e9
tree7418a2245b4764027864858e93a8ae8b14bc9e91
parentfe7aa9a567521a2aac3caf3f1076a263e1cdc6b4
Fix failure source not being reported

When the parser fails with a well-known exception, extract the
SourceIdentifier of the failed YANG source.

JIRA: YANGTOOLS-1428
Change-Id: Ib40b01a977131ce1d244be5bd4e67c39e04ab626
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/AssembleSources.java
parser/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/AbstractSchemaRepositoryTest.java [new file with mode: 0644]
parser/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SchemaContextFactoryDeviationsTest.java
parser/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/YT1428Test.java [new file with mode: 0644]
parser/yang-parser-impl/src/test/resources/yt1428/deviate.yang [new file with mode: 0644]
parser/yang-parser-impl/src/test/resources/yt1428/orig.yang [new file with mode: 0644]