From 56c3a17c400c987db7df9b8a2e477ae34fe3a4c4 Mon Sep 17 00:00:00 2001 From: catsby Date: Mon, 9 Sep 2024 10:55:24 -0500 Subject: [PATCH] update error message --- src/pkg/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/utils/utils.go b/src/pkg/utils/utils.go index 49473396..e119e813 100644 --- a/src/pkg/utils/utils.go +++ b/src/pkg/utils/utils.go @@ -229,7 +229,7 @@ func JSONValue(value any) (string, error) { // and then returns a lowercased version, with spaces (" ") replaced with "-". func FormatBundleName(src string) (string, error) { if regexp.MustCompile(`[^a-zA-Z0-9 -]+`).MatchString(src) { - return "", errors.New("invalid bundle name found; only use letters, numbers, and hypens") + return "", errors.New("bundle names should only include letters, numbers, and hypens") } src = strings.TrimSpace(src) src = regexp.MustCompile(` +`).ReplaceAllString(src, "-")