Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum
authorJoshua Leung <aligorith@gmail.com>
Fri, 4 May 2012 14:34:10 +0000 (14:34 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 4 May 2012 14:34:10 +0000 (14:34 +0000)
items from python)

Thanks Philipp Oeser (lichtwerk)

source/blender/python/intern/bpy_props.c

index 4d0c05f6582342f0b44234d4e7defde27b630df3..dbb25eb854b601fd340fe576fc06cb39fafce076 100644 (file)
@@ -1071,8 +1071,8 @@ static EnumPropertyItem *enum_items_from_py(PyObject *seq_fast, PyObject *def, i
                else {
                        MEM_freeN(items);
                        PyErr_SetString(PyExc_TypeError,
-                                       "EnumProperty(...): expected an tuple containing "
-                                       "(identifier, name description) and optionally a "
+                                       "EnumProperty(...): expected a tuple containing "
+                                       "(identifier, name, description) and optionally a "
                                        "unique number");
                        return NULL;
                }