Skip to content

Commit

Permalink
Add missing check on error return from docker log in step (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashb committed Apr 9, 2020
1 parent 105ffb0 commit 7ba67c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/docker.go
Expand Up @@ -108,7 +108,10 @@ func ExecLogin(serverAddress, username, token string) error {
RegistryToken: token,
}

response, _ = cli.RegistryLogin(ctx, types.AuthConfig(*authConfig))
response, err = cli.RegistryLogin(ctx, types.AuthConfig(*authConfig))
if err != nil {
return errors.Errorf("error saving credentials: %v", err)
}

// Get this idea from docker login cli
authConfig.RegistryToken = ""
Expand Down

0 comments on commit 7ba67c8

Please sign in to comment.