From 68107919dec4f30ca80458d36b0f8975320c7ffb Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Fri, 18 Dec 2015 12:07:27 -0800 Subject: [PATCH] Changed the error message --- jobspec/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobspec/parse.go b/jobspec/parse.go index b20631adb0a..3559744fd96 100644 --- a/jobspec/parse.go +++ b/jobspec/parse.go @@ -624,7 +624,7 @@ func parsePorts(networkObj *ast.ObjectList, nw *structs.NetworkResource) error { knownPortLabels := make(map[string]bool) for _, port := range portsObjList.Items { if len(port.Keys) == 0 { - return fmt.Errorf("Nomad expects ports to be named") + return fmt.Errorf("Ports must be named") } label := port.Keys[0].Token.Value().(string) if !reDynamicPorts.MatchString(label) {