Skip to content

Commit d05264e

Browse files
committed
Do not use 'Throwable.getMessage'.
1 parent a222d90 commit d05264e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ Object call(TruffleObject callable, Object[] arguments,
265265
return ForeignAccess.sendExecute(invokeNode, callable, arguments);
266266
} catch (ArityException | UnsupportedTypeException | UnsupportedMessageException e) {
267267
typeError.enter();
268-
throw raise(TypeError, e.getMessage());
268+
throw raise(TypeError, "%s", e);
269269
} catch (RuntimeException e) {
270270
runtimeError.enter();
271-
throw raise(RuntimeError, e.getMessage());
271+
throw raise(RuntimeError, "%s", e);
272272
}
273273
}
274274

0 commit comments

Comments
 (0)