Browse Source

fix invalid typo in error message

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
(cherry picked from commit 2322ccb8fff46a4d3a84f3ef214cb473816374af)
Justin Cormack 9 years ago
parent
commit
b7a1f1a2d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/client/swarm/opts.go

+ 2 - 2
api/client/swarm/opts.go

@@ -35,12 +35,12 @@ func (a *NodeAddrOption) String() string {
 // Set the value for this flag
 func (a *NodeAddrOption) Set(value string) error {
 	if !strings.Contains(value, ":") {
-		return fmt.Errorf("Invalud url, a host and port are required")
+		return fmt.Errorf("Invalid url, a host and port are required")
 	}
 
 	parts := strings.Split(value, ":")
 	if len(parts) != 2 {
-		return fmt.Errorf("Invalud url, too many colons")
+		return fmt.Errorf("Invalid url, too many colons")
 	}
 
 	a.addr = value