Skip to content

Commit 7f2203b

Browse files
committed
Fix invalid error message format
1 parent 568f7ca commit 7f2203b

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/formatting

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public Object format(Object args1, CallNode callNode, BiFunction<Object, String,
408408
ft.format(((PString) arg).getCharSequence());
409409
} else {
410410
// It couldn't be converted, raise the error here
411-
throw core.raise(TypeError, ErrorMessages.REQUIRES_INT_OR_CHAR);
411+
throw core.raise(TypeError, ErrorMessages.REQUIRES_INT_OR_CHAR, spec.type);
412412
}
413413

414414
break;

0 commit comments

Comments
 (0)