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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user