mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Update publish error label and message - add log.error
This commit is contained in:
parent
6b3bb3f585
commit
e6c52f0430
2 changed files with 10 additions and 6 deletions
|
|
@ -248,14 +248,16 @@ def render_rop(ropnode):
|
||||||
# Render only this node
|
# Render only this node
|
||||||
# (do not render any of its dependencies)
|
# (do not render any of its dependencies)
|
||||||
ignore_inputs=True)
|
ignore_inputs=True)
|
||||||
except hou.Error:
|
except hou.Error as exc:
|
||||||
# The hou.Error is not inherited from a Python Exception class,
|
# The hou.Error is not inherited from a Python Exception class,
|
||||||
# so we explicitly capture the houdini error, otherwise pyblish
|
# so we explicitly capture the houdini error, otherwise pyblish
|
||||||
# will remain hanging.
|
# will remain hanging.
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
raise KnownPublishError("'{}' failed to render!".format(ropnode.path()),
|
self.log.error("Exception: {}".format(exc))
|
||||||
label="Render was interrupted or canceled.")
|
raise KnownPublishError("Render maybe interrupted. "
|
||||||
|
"Check Details tab for more info.",
|
||||||
|
label="Failed to render '{}'".format(ropnode.path()))
|
||||||
|
|
||||||
|
|
||||||
def imprint(node, data, update=False):
|
def imprint(node, data, update=False):
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,11 @@ class ExtractMantraIFD(publish.Extractor):
|
||||||
os.path.normpath(os.path.join(staging_dir, frame)))
|
os.path.normpath(os.path.join(staging_dir, frame)))
|
||||||
]
|
]
|
||||||
if missing_frames:
|
if missing_frames:
|
||||||
raise KnownPublishError("Failed to complete Mantra ifd extraction. ",
|
self.log.error("Missing output files: {}".format(missing_frames))
|
||||||
# "Missing output files: {}".format(missing_frames),
|
raise KnownPublishError("Extraction was failed due to missing frames. "
|
||||||
label="Render was interrupted or canceled.")
|
"Check Details tab for more info.",
|
||||||
|
label="Failed to complete Mantra ifd extraction for '{}'."
|
||||||
|
.format(ropnode.path()))
|
||||||
|
|
||||||
if "representations" not in instance.data:
|
if "representations" not in instance.data:
|
||||||
instance.data["representations"] = []
|
instance.data["representations"] = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue