diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-03-30 11:29:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-30 11:31:50 +0300 |
commit | 0d65d27386d649b42599952fed1532892ee03a35 (patch) | |
tree | ada377a3b13d5c9586b13309c5187cae918c7918 | |
parent | 39bead4d51e5e96188feab4fb45d453fc7b1f2a6 (diff) |
Python: clarify error message when accessing datablock by library
When using `bpy.data.actions[action_name, "nonexistant-library"]`,
use the term `filepath` instead of `name` in the error message.
Also increase the size to match the file path length.
Ref D10253
-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 49ac2662a31..b9ab0ce4c29 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -2546,7 +2546,7 @@ static int pyrna_prop_collection_subscript_str_lib_pair_ptr(BPy_PropertyRNA *sel if (lib == NULL) { if (err_not_found) { PyErr_Format(PyExc_KeyError, - "%s: lib name '%.240s' " + "%s: lib filepath '%.1024s' " "does not reference a valid library", err_prefix, keylib_str); |