Changed the error message

This commit is contained in:
Diptanu Choudhury 2015-12-18 12:07:27 -08:00
parent c04f1e8d82
commit ebd2fdb930
1 changed files with 1 additions and 1 deletions

View File

@ -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) {