Skip to content

Commit 0042888

Browse files
committed
Put Throwable.getMessage behind a boundary in posix builtins
1 parent 243eaf0 commit 0042888

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ String readlink(String str, @SuppressWarnings("unused") PNone none) {
18381838
try {
18391839
return getContext().getEnv().getTruffleFile(str).getCanonicalFile().getPath();
18401840
} catch (IOException e) {
1841-
throw raise(OSError, e.getMessage());
1841+
throw raise(OSError, getMessage(e));
18421842
}
18431843
}
18441844
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PNodeWithContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public final PException raise(PythonBuiltinClassType type, Exception e) {
117117
}
118118

119119
@TruffleBoundary
120-
private static final String getMessage(Exception e) {
120+
protected static final String getMessage(Exception e) {
121121
return e.getMessage();
122122
}
123123

0 commit comments

Comments
 (0)