Explorar o código

fix merge issue

Victor Vieux %!s(int64=12) %!d(string=hai) anos
pai
achega
6cb908bb82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -857,7 +857,7 @@ func (cli *DockerCli) CmdPush(args ...string) error {
 	}
 	}
 
 
 	if err := push(); err != nil {
 	if err := push(); err != nil {
-		if err == fmt.Errorf("Authentication is required.") {
+		if err.Error() == "Authentication is required." {
 			if err = cli.checkIfLogged("push"); err == nil {
 			if err = cli.checkIfLogged("push"); err == nil {
 				return push()
 				return push()
 			}
 			}