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:
Diptanu Choudhury 2016-07-20 10:08:45 -07:00 committed by GitHub
commit d7e397d3f9
1 changed files with 1 additions and 1 deletions

View File

@ -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
}