Skip to content

Commit 7a5d40e

Browse files
change error message
1 parent e24d49d commit 7a5d40e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

venonactl/cmd/install.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ func parseNodeSelector(s string) (nodeSelector, error) {
225225

226226
func validateInstallOptions(opts plugins.InstallOptions) (error) {
227227
if len(opts.ClusterName) > clusterNameMaxLength {
228-
return errors.New("cluster name lenght is limited to 20")
228+
return errors.New(fmt.Sprintf("cluster name lenght is limited to %d", clusterNameMaxLength))
229229
}
230230
if len(opts.ClusterNamespace) > namespaceMaxLength {
231-
return errors.New("cluster namespace is limited to 20")
231+
return errors.New(fmt.Sprintf("cluster namespace is limited to %d", namespaceMaxLength))
232232
}
233233
return nil
234234
}

0 commit comments

Comments
 (0)