Skip to content

Commit 6834943

Browse files
committed
Revert to PythonExitException in FatalError
1 parent a4f65ad commit 6834943

File tree

1 file changed

+1
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common/CExtCommonNodes.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ public static void fatalError(Node location, PythonContext context, String prefi
136136

137137
if (status < 0) {
138138
// In CPython, this will use 'abort()' which sets a special exit code.
139-
System.exit(SIGABRT_EXIT_CODE);
140-
throw CompilerDirectives.shouldNotReachHere();
139+
throw new PythonExitException(location, SIGABRT_EXIT_CODE);
141140
}
142141
throw new PythonExitException(location, status);
143142
}

0 commit comments

Comments
 (0)