Skip to content

Commit 1e99b25

Browse files
committed
WIP: return early on error, and don't save
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 3904477 commit 1e99b25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/command/registry/login.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func loginWithStoredCredentials(ctx context.Context, dockerCLI command.Cli, auth
164164
} else {
165165
_, _ = fmt.Fprintln(dockerCLI.Err(), "Login did not succeed, error:", err)
166166
}
167+
return err
167168
}
168169

169170
if response.IdentityToken != "" {

0 commit comments

Comments
 (0)