Merge pull request #1439 from nak3/fix-error-message
Add missed service name of the error message for the invalid port
This commit is contained in:
commit
d7e397d3f9
|
@ -1669,7 +1669,7 @@ func (s *Service) Validate() error {
|
|||
|
||||
for _, c := range s.Checks {
|
||||
if s.PortLabel == "" && c.RequiresPort() {
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("check %s invalid: check requires a port but the service %+q has no port", c.Name))
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("check %s invalid: check requires a port but the service %+q has no port", c.Name, s.Name))
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue