Skip to content

Commit

Permalink
[Trivial] Update error type in blueprint validator (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 committed Jun 14, 2022
1 parent 04aad2a commit 690dc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blueprint/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func validatePhaseNames(bp *crv1alpha1.Blueprint) error {

for _, phase := range allPhases {
if val := phasesCount[phase.Name]; val >= 1 {
return fmt.Errorf("%s: Duplicated phase name is not allowed. Violating phase '%s'", BPValidationErr, phase.Name)
return errors.New(fmt.Sprintf("%s: Duplicated phase name is not allowed. Violating phase '%s'", BPValidationErr, phase.Name))
}
phasesCount[phase.Name] = 1
}
Expand Down

0 comments on commit 690dc57

Please sign in to comment.