From 72a28262da4e4b9e20f92720f6f35b06be166f5f Mon Sep 17 00:00:00 2001 From: Fulvio Risso Date: Sat, 20 May 2023 11:18:11 +0200 Subject: [PATCH] Improve error message Adding a potential solution to the problem. --- pkg/liqoctl/install/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/liqoctl/install/validation.go b/pkg/liqoctl/install/validation.go index 227aa0ff4b..04b13031db 100644 --- a/pkg/liqoctl/install/validation.go +++ b/pkg/liqoctl/install/validation.go @@ -71,7 +71,7 @@ func (o *Options) validateClusterName() (err error) { errs := validation.IsDNS1123Label(o.ClusterName) if len(errs) != 0 { - return fmt.Errorf("the cluster name may only contain lowercase letters, numbers and hyphens, and must not be no longer than 63 characters") + return fmt.Errorf("the cluster name may only contain lowercase letters, numbers and hyphens, and must not be no longer than 63 characters. Try using 'liqoctl --cluster-name' to overcome this error") } return nil