Skip to content

Commit

Permalink
Test/rebase me -- force MessageExceptions used in workflow modules to
Browse files Browse the repository at this point in the history
have a string error message.
  • Loading branch information
dannon committed Apr 23, 2024
1 parent 352c505 commit d8951c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/galaxy/workflow/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -2573,11 +2573,13 @@ def populate_module_and_state(
step_args = param_map.get(step.id, {})
step_errors = module_injector.compute_runtime_state(step, step_args=step_args)
if step_errors:
raise exceptions.MessageException(step_errors, err_data={step.order_index: step_errors})
raise exceptions.MessageException(
"Error computing workflow step runtime state", err_data={step.order_index: step_errors}
)
if step.upgrade_messages:
if allow_tool_state_corrections:
log.debug('Workflow step "%i" had upgrade messages: %s', step.id, step.upgrade_messages)
else:
raise exceptions.MessageException(
step.upgrade_messages, err_data={step.order_index: step.upgrade_messages}
"Workflow step has upgrade messages", err_data={step.order_index: step.upgrade_messages}
)

0 comments on commit d8951c4

Please sign in to comment.