Skip to content

Commit

Permalink
fix: throw error when workflow name is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-schmid committed Nov 4, 2024
1 parent 32e10d4 commit 013e8ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/providers/save-workflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export function SaveWorkflowProvider({
);
}
if (!isValidWorkflowName(workflow.workflowName)) {
errorToast(WORKFLOW_NAME_VALIDATION_ERROR_MESSAGE);
throw new WorkflowValidationError(
WORKFLOW_NAME_VALIDATION_ERROR_MESSAGE,
);
}

// Make sure that we only save args which are present in the current
Expand Down

0 comments on commit 013e8ae

Please sign in to comment.