diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-20 04:19:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-20 04:20:34 +0300 |
commit | 306bc5fd1aa3e5eab20dea0ce9134c36df4ca815 (patch) | |
tree | 2bade65000514090fdb67189a4b20ecc8e68054e /source/blender/python/intern | |
parent | 593ed1347c96aea691eb503a6bbed12c801f3faa (diff) |
PyAPI: don't truncate enums in exception messages
Not necessary and confusing when only some of the items are displayed.
See: T59044
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 9837017b8b1..b36a6e06651 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -1206,7 +1206,7 @@ static int pyrna_string_to_enum( if (!RNA_property_enum_value(BPy_GetContext(), ptr, prop, param, r_value)) { const char *enum_str = pyrna_enum_as_string(ptr, prop); PyErr_Format(PyExc_TypeError, - "%.200s enum \"%.200s\" not found in (%.200s)", + "%.200s enum \"%.200s\" not found in (%s)", error_prefix, param, enum_str); MEM_freeN((void *)enum_str); return -1; |