From c24e886a5f6c88e16d13e886427c0431b61652fd Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 20 Jul 2016 20:41:24 +0900 Subject: [PATCH] Add missed service name of the error message for the invalid port --- nomad/structs/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 9f72197a3..0c6d54f2f 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -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 }