mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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}."
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user