Skip to content

Commit

Permalink
Merge pull request #18009 from mvdbeek/return_message_exception_when_…
Browse files Browse the repository at this point in the history
…invocation_report_references_invalid_output

[24.0] Raise ``MessageException`` when report references invalid workflow output
  • Loading branch information
mvdbeek authored Apr 17, 2024
2 parents 1c899ab + aeab88b commit a51aa51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8586,11 +8586,11 @@ def get_output_object(self, label):
# 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}."
)

Expand Down

0 comments on commit a51aa51

Please sign in to comment.