Add-on: include error cause in "Error performing BAT pack" message

The error can get cryptic, but without opening the terminal people
otherwise would have no idea what's going on.
This commit is contained in:
Sybren A. Stüvel 2022-08-31 08:09:11 +02:00
parent a7510f4042
commit 0b176eda96

View File

@ -321,7 +321,7 @@ class FLAMENCO_OT_submit_job(FlamencoOpMixin, bpy.types.Operator):
if isinstance(msg, bat_interface.MsgException):
self.log.error("Error performing BAT pack: %s", msg.ex)
self.report({"ERROR"}, "Error performing BAT pack")
self.report({"ERROR"}, "Error performing BAT pack: %s" % msg.ex)
# This was an exception caught at the top level of the thread, so
# the packing thread itself has stopped.