From 9abc802f15bebbbf220421f7a3078feb190fce56 Mon Sep 17 00:00:00 2001
From: h3nryc0ding <101796272+h3nryc0ding@users.noreply.github.com>
Date: Sun, 10 Nov 2024 02:50:04 +0000
Subject: [PATCH] fix: error message for missing kind
Signed-off-by: h3nryc0ding <101796272+h3nryc0ding@users.noreply.github.com>
Signed-off-by: h3nryc0ding
---
internal/flags/kustomization_source.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/flags/kustomization_source.go b/internal/flags/kustomization_source.go
index 4dc124ab76..3f339585fe 100644
--- a/internal/flags/kustomization_source.go
+++ b/internal/flags/kustomization_source.go
@@ -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
}