Skip to content

Commit 0a83c56

Browse files
committed
Print Java stracktrace of foreign languages optionally.
1 parent 8a85bb2 commit 0a83c56

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/control/TopLevelExceptionHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ public Object execute(VirtualFrame frame) {
139139
} catch (Exception | StackOverflowError e) {
140140
boolean exitException = e instanceof TruffleException && ((TruffleException) e).isExit();
141141
if (!exitException) {
142+
ExceptionUtils.printPythonLikeStackTrace(e);
142143
if (PythonOptions.getOption(context.get(), PythonOptions.WithJavaStacktrace)) {
143144
printStackTrace(e);
144-
} else {
145-
ExceptionUtils.printPythonLikeStackTrace(e);
146145
}
147146
}
148147
throw e;

0 commit comments

Comments
 (0)