Improve validation error message

This commit is contained in:
Toke Stuart Jepsen 2023-01-04 15:03:30 +00:00
parent 2a748047ed
commit 370bb96408

View file

@ -26,7 +26,10 @@ class ValidateXgen(pyblish.api.InstancePlugin):
continue
remainder_nodes.append(node)
msg = "Invalid nodes in the objectset:\n{}".format(remainder_nodes)
msg = (
"Only the collection is used when publishing. Found these invalid"
" nodes in the objectset:\n{}".format(remainder_nodes)
)
assert not remainder_nodes, msg
# Only one collection per instance.