diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index e32331d138a..385429cbf2c 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -263,8 +263,8 @@ bytes_iconcat(PyBytesObject *self, PyObject *other) Py_buffer vo; if (_getbuffer(other, &vo) < 0) { - PyErr_Format(PyExc_TypeError, "can't concat bytes to %.100s", - Py_TYPE(self)->tp_name); + PyErr_Format(PyExc_TypeError, "can't concat %.100s to %.100s", + Py_TYPE(other)->tp_name, Py_TYPE(self)->tp_name); return NULL; }