Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvia Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Apr 28, 2023
1 parent 1f97c27 commit ede6416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/notation/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func runLogin(ctx context.Context, opts *loginOpts) error {
if err != nil {
return fmt.Errorf("failed to get registry client: %v", err)
}
registryName := registry.Reference.Registry
if err := credentials.Login(ctx, credsStore, registry, cred); err != nil {
registryName := registry.Reference.Registry
if errors.Is(err, credentials.ErrPlaintextPutDisabled) {
// this error indicates that native store is not available
return fmt.Errorf("failed to save the credential for %s: credentials store config was not set up, please refer to %s for more information",
Expand Down

0 comments on commit ede6416

Please sign in to comment.