diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-23 21:08:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-23 21:08:42 +0300 |
commit | 052290d2b378d8639598b1ca75972a83c9fc41c0 (patch) | |
tree | e6f3e1e2ccbe4bb8bad1d30285b33eefe7833059 /source/blender/python/intern/bpy_operator.c | |
parent | 4c03ce91001ebb7f63c12e32902dd2cb7e487d1a (diff) |
fixed some error reporting issues with calling operators
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index 409afee7d7d..c2504ed2c50 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -76,7 +76,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_SetString( PyExc_SystemError, "_bpy.ops.call: operator poll() function failed, context is incorrect"); + PyErr_Format( PyExc_SystemError, "_bpy.ops.call: operator %.200s.poll() function failed, context is incorrect", opname); error_val= -1; } else { |