Skip to content

Commit

Permalink
improve reference resolver not found exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Luncher91 committed Feb 3, 2025
1 parent 0ca961a commit b6d83af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/net/alenzen/a2l/indexes/ReferenceResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,8 @@ private void resolveReferencesOnFields(IAsap2TreeElement node, Map<String, Map<S
}

if (!referenceFoundFlag) {
new ReferenceNotFoundException(referenceString, node, searchedIndexes);
referenceNotFound.accept( // TODO improve exception so the exception contains the actual data to
// better debug and filter issues
new NoSuchElementException());
referenceNotFound.accept(new ReferenceNotFoundException(referenceString, node, searchedIndexes));
}

}

// loop exit condition
Expand Down

0 comments on commit b6d83af

Please sign in to comment.