Skip to content

Commit

Permalink
fix: update error message (notaryproject#380)
Browse files Browse the repository at this point in the history
Previous:
```
Error: describe-key command failed: failed to execute the describe-key command for plugin azure-kv: CertificateNotFound: A certificate with (name/id) self-signed-pkcs13/versions/70747b2064c0488e936eba7a29acc4c6 was not found in this key vault. If you recently deleted this certificate you may be able to recover it using the correct recovery command. For help resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125182
```

Current:
```
Error: failed to execute the describe-key command for plugin azure-kv: CertificateNotFound: A certificate with (name/id) self-signed-pkcs13/versions/70747b2064c0488e936eba7a29acc4c6 was not found in this key vault. If you recently deleted this certificate you may be able to recover it using the correct recovery command. For help resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125182
```

Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao authored Jan 29, 2024
1 parent b7cd8a0 commit 1752918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signer/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (s *pluginSigner) describeKey(ctx context.Context, config map[string]string
}
resp, err := s.plugin.DescribeKey(ctx, req)
if err != nil {
return nil, fmt.Errorf("describe-key command failed: %w", err)
return nil, err
}

return resp, nil
Expand Down Expand Up @@ -301,7 +301,7 @@ func (s *pluginPrimitiveSigner) Sign(payload []byte) ([]byte, []*x509.Certificat

resp, err := s.plugin.GenerateSignature(s.ctx, req)
if err != nil {
return nil, nil, fmt.Errorf("generate-signature command failed: %w", err)
return nil, nil, err
}

// Check keyID is honored.
Expand Down

0 comments on commit 1752918

Please sign in to comment.