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:
2021-03-30 19:29:59 +11:00
committed by Campbell Barton
parent 39bead4d51
commit 0d65d27386

View File

@@ -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);