diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-16 02:16:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-16 02:16:16 +0300 |
commit | 13dc766148870097b36813a81b8eb45b0f6dc065 (patch) | |
tree | b52681f2856265f8741fd1a4d20b3b8ecfa2f343 /source/blender | |
parent | 06cc89d744e0f432ab79a2e4283dd31de6c09d03 (diff) |
PyAPI: bpy.ops enum error was cut short
Diffstat (limited to 'source/blender')
-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 aad47d14b7c..8309938b632 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -100,7 +100,7 @@ static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args) char *enum_str = BPy_enum_as_string(operator_context_items); PyErr_Format(PyExc_TypeError, "Calling operator \"bpy.ops.%s.poll\" error, " - "expected a string enum in (%.200s)", + "expected a string enum in (%s)", opname, enum_str); MEM_freeN(enum_str); return NULL; @@ -186,7 +186,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args) char *enum_str = BPy_enum_as_string(operator_context_items); PyErr_Format(PyExc_TypeError, "Calling operator \"bpy.ops.%s\" error, " - "expected a string enum in (%.200s)", + "expected a string enum in (%s)", opname, enum_str); MEM_freeN(enum_str); return NULL; |