Skip to content

Commit

Permalink
Merge pull request #5068 from h3nryc0ding/fix/cli-invalid-error-message
Browse files Browse the repository at this point in the history
fix(cli): confusing error message for missing kind
  • Loading branch information
makkes authored Nov 11, 2024
2 parents 2a5948f + 9abc802 commit 5b83111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/flags/kustomization_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *KustomizationSource) Set(str string) error {
}
if sourceKind == "" {
if utils.ContainsItemString(supportedKustomizationSourceKinds, sourceName) {
return fmt.Errorf("no name given for source of kind '%s'", sourceName)
return fmt.Errorf("no kind specified for source '%s'", sourceName)
}
sourceKind = sourcev1.GitRepositoryKind
}
Expand Down

0 comments on commit 5b83111

Please sign in to comment.