You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO should we error if _any_ advanced option is used? (i.e. forbid to combine advanced notation with the "old" flags (`--network-alias`, `--link`, `--ip`, `--ip6`)?
805
804
iflen(n.Aliases) >0&&copts.aliases.Len() >0 {
806
-
returnerrdefs.InvalidParameter(errors.New("conflicting options: cannot specify both --network-alias and per-network alias"))
805
+
returninvalidParameter(errors.New("conflicting options: cannot specify both --network-alias and per-network alias"))
807
806
}
808
807
iflen(n.Links) >0&&copts.links.Len() >0 {
809
-
returnerrdefs.InvalidParameter(errors.New("conflicting options: cannot specify both --link and per-network links"))
808
+
returninvalidParameter(errors.New("conflicting options: cannot specify both --link and per-network links"))
810
809
}
811
810
ifn.IPv4Address!=""&&copts.ipv4Address!="" {
812
-
returnerrdefs.InvalidParameter(errors.New("conflicting options: cannot specify both --ip and per-network IPv4 address"))
811
+
returninvalidParameter(errors.New("conflicting options: cannot specify both --ip and per-network IPv4 address"))
813
812
}
814
813
ifn.IPv6Address!=""&&copts.ipv6Address!="" {
815
-
returnerrdefs.InvalidParameter(errors.New("conflicting options: cannot specify both --ip6 and per-network IPv6 address"))
814
+
returninvalidParameter(errors.New("conflicting options: cannot specify both --ip6 and per-network IPv6 address"))
816
815
}
817
816
ifn.MacAddress!=""&&copts.macAddress!="" {
818
-
returnerrdefs.InvalidParameter(errors.New("conflicting options: cannot specify both --mac-address and per-network MAC address"))
817
+
returninvalidParameter(errors.New("conflicting options: cannot specify both --mac-address and per-network MAC address"))
0 commit comments