mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Correctly pass on node paths for error message readability
This commit is contained in:
parent
b5424e2954
commit
f7d755d9fe
1 changed files with 2 additions and 3 deletions
|
|
@ -23,7 +23,6 @@ class ValidateOutputNode(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
invalid = self.get_invalid(instance)
|
invalid = self.get_invalid(instance)
|
||||||
if invalid:
|
if invalid:
|
||||||
invalid = [node.path() for node in invalid]
|
|
||||||
raise RuntimeError("Output node(s) `%s` are incorrect. "
|
raise RuntimeError("Output node(s) `%s` are incorrect. "
|
||||||
"See plug-in log for details." % invalid)
|
"See plug-in log for details." % invalid)
|
||||||
|
|
||||||
|
|
@ -40,7 +39,7 @@ class ValidateOutputNode(pyblish.api.InstancePlugin):
|
||||||
"Ensure a valid SOP output path is set."
|
"Ensure a valid SOP output path is set."
|
||||||
% node.path())
|
% node.path())
|
||||||
|
|
||||||
return node.path()
|
return [node.path()]
|
||||||
|
|
||||||
# Output node must be a Sop node.
|
# Output node must be a Sop node.
|
||||||
if not isinstance(output_node, hou.SopNode):
|
if not isinstance(output_node, hou.SopNode):
|
||||||
|
|
@ -51,7 +50,7 @@ class ValidateOutputNode(pyblish.api.InstancePlugin):
|
||||||
output_node.type().category().name()
|
output_node.type().category().name()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return [output_node]
|
return [output_node.path()]
|
||||||
|
|
||||||
# For the sake of completeness also assert the category type
|
# For the sake of completeness also assert the category type
|
||||||
# is Sop to avoid potential edge case scenarios even though
|
# is Sop to avoid potential edge case scenarios even though
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue