Skip to content

Commit 0920f1b

Browse files
committed
WIP: return early on error, and don't save
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 16ec4a0 commit 0920f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/command/registry/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func loginWithStoredCredentials(ctx context.Context, dockerCLI command.Cli, auth
168168
} else {
169169
_, _ = fmt.Fprintln(dockerCLI.Err(), "Login did not succeed, error:", err)
170170
}
171-
// TODO(thaJeztah): should this return the error here, or is there a reason for continuing?
171+
return err
172172
}
173173

174174
if resp.Auth.IdentityToken != "" {

0 commit comments

Comments
 (0)