Skip to content

Commit

Permalink
Don't include internal nodes in the stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Mar 1, 2023
1 parent 8fcaf60 commit cddd152
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ object ErrorResolver {
x.getEncapsulatingSourceSection match {
case null if x.getRootNode == null =>
None
case null if x.getRootNode.isInternal =>
None
case null =>
Some(Api.StackTraceElement(x.getRootNode.getName, None, None, None))
case section =>
Expand Down

0 comments on commit cddd152

Please sign in to comment.