Fix T38402: invalid message for bad type assignments (Quat, Vector)

This commit is contained in:
2014-01-30 16:45:20 +11:00
parent 6e479b18ef
commit bd697dd4d7
5 changed files with 6 additions and 6 deletions

View File

@@ -1295,7 +1295,7 @@ static int vector_ass_item_internal(VectorObject *self, int i, PyObject *value,
if ((scalar = PyFloat_AsDouble(value)) == -1.0f && PyErr_Occurred()) { /* parsed item not a number */
PyErr_SetString(PyExc_TypeError,
"vector[index] = x: "
"index argument not a number");
"assigned value not a number");
return -1;
}