fix: format error message

This commit is contained in:
Pasha Sviderski
2025-05-07 15:59:53 +10:00
committed by GitHub
parent 9f4b8179b5
commit bb97537df7
+1 -1
View File
@@ -110,7 +110,7 @@ func (s *ServiceSpec) Validate() error {
return fmt.Errorf("service name too long (max 63 characters): %q", s.Name) return fmt.Errorf("service name too long (max 63 characters): %q", s.Name)
} }
if !dnsLabelRegexp.MatchString(s.Name) { if !dnsLabelRegexp.MatchString(s.Name) {
return fmt.Errorf("invalid service name: %q.must be 1-63 characters, lowercase letters, numbers, and dashes only; must start and end with a letter or number", s.Name) return fmt.Errorf("invalid service name: %q. must be 1-63 characters, lowercase letters, numbers, and dashes only; must start and end with a letter or number", s.Name)
} }
} }