Unverified Commit a51aa51f authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #18009 from...

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
parents 1c899abd aeab88be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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}."
            )