Improved error message

Co-authored-by: nulano <nulano@nulano.eu>
This commit is contained in:
Andrew Murray 2020-09-22 08:36:29 +10:00 committed by GitHub
parent 27c0747518
commit e01081bf8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,7 +536,7 @@ getink(PyObject* color, Imaging im, char* ink)
return NULL; return NULL;
} }
} else { } else {
PyErr_SetString(PyExc_TypeError, "color must be int or tuple"); PyErr_SetString(PyExc_TypeError, "color must be int or single-element tuple");
return NULL; return NULL;
} }
} }