Python API: give a better error message when creating a Matrix fails
authorCampbell Barton <ideasman42@gmail.com>
Thu, 28 Nov 2013 22:47:11 +0000 (09:47 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 28 Nov 2013 22:48:42 +0000 (09:48 +1100)
source/blender/python/mathutils/mathutils_Matrix.c

index 3e5dcc28903dfa3183abb673bf887bc610d9d143..ccff114a56dd733baf5ff4930480e194ee76f4ed 100644 (file)
@@ -378,7 +378,7 @@ static PyObject *Matrix_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
        /* will overwrite error */
        PyErr_SetString(PyExc_TypeError,
                        "Matrix(): "
-                       "expects no args or 2-4 numeric sequences");
+                       "expects no args or a single arg containing 2-4 numeric sequences");
        return NULL;
 }