Skip to content

Commit 14d6880

Browse files
committed
print exception class name also
1 parent de9aa2c commit 14d6880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/formatting/ErrorMessageFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public String format(GetLazyClassNode getClassNode, String format, Object... arg
116116

117117
@TruffleBoundary
118118
private static String getMessage(Throwable exception) {
119-
return exception.getMessage();
119+
return exception.getClass().getSimpleName() + ": " + exception.getMessage();
120120
}
121121

122122
private static String getClassName(GetLazyClassNode getClassNode, Object obj) {

0 commit comments

Comments
 (0)