mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-07 16:27:27 +00:00
Merge pull request #5068 from h3nryc0ding/fix/cli-invalid-error-message
fix(cli): confusing error message for missing kind
This commit is contained in:
commit
5b83111dc6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue