diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-25 21:09:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-25 21:09:46 +0300 |
commit | c91a0f8adf8636e1b11346319319842bfddd2b2f (patch) | |
tree | 30f0be27ac10cc5faa74b168e813066ede64b0c5 /source/blender/python/intern/bpy_operator.c | |
parent | 905a238075ca9660fbf41476c373c3723e8b7e0a (diff) |
make exception a bit nicer (since wiki docs dont make much sense how it was before)
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index bd7a0a97115..b98dab1c5c4 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -66,7 +66,7 @@ static PyObject *pyop_call( PyObject * self, PyObject * args) ot= WM_operatortype_exists(opname); if (ot == NULL) { - PyErr_Format( PyExc_SystemError, "_bpy.ops.call: operator \"%s\" could not be found", opname); + PyErr_Format( PyExc_SystemError, "Calling operator \"bpy.ops.%s\" error, could not be found", opname); return NULL; } @@ -79,7 +79,7 @@ static PyObject *pyop_call( PyObject * self, PyObject * args) Py_XINCREF(context_dict); /* so we done loose it */ if(WM_operator_poll((bContext*)C, ot) == FALSE) { - PyErr_Format( PyExc_SystemError, "_bpy.ops.call: operator %.200s.poll() function failed, context is incorrect", opname); + PyErr_Format( PyExc_SystemError, "Operator bpy.ops.%.200s.poll() failed, context is incorrect", opname); error_val= -1; } else { |