Clarified error message

This commit is contained in:
Andrew Murray 2021-04-30 19:36:30 +10:00
parent 256372724b
commit 1c617a9877

View File

@ -298,7 +298,7 @@ get_unpacker(ImagingDecoderObject *decoder, const char *mode, const char *rawmod
unpack = ImagingFindUnpacker(mode, rawmode, &bits);
if (!unpack) {
Py_DECREF(decoder);
PyErr_SetString(PyExc_ValueError, "unknown raw mode");
PyErr_SetString(PyExc_ValueError, "unknown raw mode for given image mode");
return -1;
}