diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 474ca1e88..0c783a428 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2633,7 +2633,7 @@ def fromarray(obj, mode=None): typekey = (1, 1) + shape[2:], arr["typestr"] mode, rawmode = _fromarray_typemap[typekey] except KeyError: - raise TypeError("Cannot handle this data type") + raise TypeError("Cannot handle this data type: %s, %s" % typekey) else: rawmode = mode if mode in ["1", "L", "I", "P", "F"]: