Skip to content

Commit 619cb28

Browse files
committed
Try harder to get location in printPythonLikeStackTrace
1 parent feb4b81 commit 619cb28

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
@@ -111,7 +111,7 @@ public static void printPythonLikeStackTrace(Throwable e) {
111111

112112
private static void appendStackLine(ArrayList<String> stack, Node location, RootNode rootNode, boolean evenWithoutSource) {
113113
StringBuilder sb = new StringBuilder();
114-
SourceSection sourceSection = location != null ? location.getSourceSection() : null;
114+
SourceSection sourceSection = location != null ? location.getEncapsulatingSourceSection() : null;
115115
String rootName = rootNode.getName();
116116
if (sourceSection != null) {
117117
sb.append(" ");

0 commit comments

Comments
 (0)