Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Use %v instead of %w for error wrapping
Browse files Browse the repository at this point in the history
We're not at go 1.13 yet. We can update later.
  • Loading branch information
jpcoenen committed Dec 2, 2019
1 parent 8e4536f commit e48c093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/secrethub/credentials/bootstrap_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ func UseBackupCode(code string) Provider {
func (b *bootstrapCodeProvider) Provide(_ *http.Client) (auth.Authenticator, Decrypter, error) {
err := ValidateBootstrapCode(b.code)
if err != nil {
return nil, nil, fmt.Errorf("malformed code: %w", err)
return nil, nil, fmt.Errorf("malformed code: %v", err)
}
bytes, err := hex.DecodeString(filterBootstrapCode(b.code))
if err != nil {
return nil, nil, fmt.Errorf("malformed code: %w", err)
return nil, nil, fmt.Errorf("malformed code: %v", err)
}
bootstrapCode := newBootstrapCode(bytes, b.t)
return auth.NewHTTPSigner(bootstrapCode), bootstrapCode, nil
Expand Down

0 comments on commit e48c093

Please sign in to comment.