Skip to content

Commit aa6eef8

Browse files
committed
minor: added missign arg in err msg formatting
1 parent ca0815a commit aa6eef8

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/cext/common/CExtParseArgumentsNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static ParserState doBytes(ParserState state, Object kwds, @SuppressWarnings("un
498498
if (isBytesProfile.profileClass(getClassNode.execute(arg), PythonBuiltinClassType.PBytes)) {
499499
writeOutVarNode.writePyObject(varargs, state.outIndex, toNativeNode.execute(arg));
500500
} else {
501-
throw raise(raiseNode, TypeError, ErrorMessages.EXPECTED_S_NOT_P, arg);
501+
throw raise(raiseNode, TypeError, ErrorMessages.EXPECTED_S_NOT_P, "bytes", arg);
502502
}
503503
}
504504
return state.incrementOutIndex();

0 commit comments

Comments
 (0)