Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tothszabi committed Oct 30, 2024
1 parent c48b697 commit af293d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (d *GraphPipelineAlwaysRunMode) UnmarshalYAML(unmarshal func(interface{}) e

allowedValues := []string{string(GraphPipelineAlwaysRunModeOff), string(GraphPipelineAlwaysRunModeWorkflow)}
if !slices.Contains(allowedValues, value) {
return fmt.Errorf("%s is not a valid should always run value", value)
return fmt.Errorf("%s is not a valid should_always_run value (%s)", value, allowedValues)
}

*d = GraphPipelineAlwaysRunMode(value)
Expand Down

0 comments on commit af293d9

Please sign in to comment.