Skip to content

Commit

Permalink
fix(sdk): typo on workflow error message (#6483)
Browse files Browse the repository at this point in the history
Signed-off-by: Edgar Weber <[email protected]>
  • Loading branch information
marat-42 authored Feb 24, 2023
1 parent 5f98503 commit 2a06689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/exportentities/v2/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ func (e *NodeEntry) processNodeAncestors(name string, w *sdk.Workflow) (bool, er
case 0:
// If there is already a root node, it is impossible have another one
if w.WorkflowData.Node.Name != "" {
return false, sdk.NewErrorFrom(sdk.ErrWrongRequest, "invalid node dependencies. %s should have at least one dependency because the workflow already have a root", n.Name)
return false, sdk.NewErrorFrom(sdk.ErrWrongRequest, "invalid node dependencies. %s should have at least one dependency because the workflow already has a root", n.Name)
}
w.WorkflowData.Node = *n
return true, nil
Expand Down

0 comments on commit 2a06689

Please sign in to comment.