Skip to content

Commit 15f9ba1

Browse files
committed
Fix mssing frames in python-like stacktrace for Java exceptions
1 parent 9758158 commit 15f9ba1

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/exception

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/exception/ExceptionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private static void appendStackLine(ArrayList<String> stack, Node location, Root
172172
return;
173173
}
174174
StringBuilder sb = new StringBuilder();
175-
SourceSection sourceSection = location != null ? location.getEncapsulatingSourceSection() : null;
175+
SourceSection sourceSection = location != null ? location.getEncapsulatingSourceSection() : rootNode.getSourceSection();
176176
if (sourceSection != null) {
177177
sb.append(" File \"");
178178
Source source = sourceSection.getSource();

0 commit comments

Comments
 (0)