Skip to content

Commit

Permalink
Merge pull request #31 from cryptogarageinc/feature/empty-label-log-l…
Browse files Browse the repository at this point in the history
…evel

fix: change error to warning on findLabel
  • Loading branch information
k-matsuzawa authored Jan 15, 2024
2 parents eb460a4 + 70a99da commit efc4e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/pkcs11/pkcs11.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (p *pkcs11Api) FindKeyByLabel(
// success
case 0:
err = errors.New("target is empty")
logError(ctx, "FindKeyByLabel", err)
logWarn(ctx, "FindKeyByLabel", err)
return 0, err
default:
err = errors.Wrapf(ErrLabelNotFound, "target is many, %d", len(handles))
Expand Down

0 comments on commit efc4e44

Please sign in to comment.