Skip to content

Commit 9c9bf62

Browse files
committed
Fix: correct error message.
1 parent af1378f commit 9c9bf62

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/builtins/objects/bytes/ByteArrayBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ int find(PByteArray self, PIBytesLike sub, int start, int ending) {
539539
@Fallback
540540
@SuppressWarnings("unused")
541541
Object doGeneric(Object self, Object sub, Object start, Object ending) {
542-
throw raise(TypeError, "argument should be integer or bytes-like object, not 'str'");
542+
throw raise(TypeError, "argument should be integer or bytes-like object, not '%p'", sub);
543543
}
544544
}
545545

0 commit comments

Comments
 (0)