mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Improved error message
Co-authored-by: nulano <nulano@nulano.eu>
This commit is contained in:
parent
27c0747518
commit
e01081bf8b
|
@ -536,7 +536,7 @@ getink(PyObject* color, Imaging im, char* ink)
|
|||
return NULL;
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user