Merge pull request #18009 from mvdbeek/return_message_exception_when_invocation_report_references_invalid_output

[24.0] Raise ``MessageException`` when report references invalid workflow output
This commit is contained in:
Marius van den Beek
2024-04-17 16:15:56 +02:00
committed by GitHub
+2 -2
View File
@@ -8586,11 +8586,11 @@ class WorkflowInvocation(Base, UsesCreateAndUpdateTime, Dictifiable, Serializabl
# That probably isn't good.
workflow_output = self.workflow.workflow_output_for(label)
if workflow_output:
raise Exception(
raise galaxy.exceptions.MessageException(
f"Failed to find workflow output named [{label}], one was defined but none registered during execution."
)
else:
raise Exception(
raise galaxy.exceptions.MessageException(
f"Failed to find workflow output named [{label}], workflow doesn't define output by that name - valid names are {self.workflow.workflow_output_labels}."
)