Skip to content

Commit

Permalink
changed %v to %w for Errorf lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
bustedware committed Oct 27, 2023
1 parent 2ea4549 commit e57b199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/common/tls/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func loadCertificate(config *tls.Config, certFile, keyFile, privateKeyPassphrase
}
if err != nil {
return fmt.Errorf(
"could not load keypair %s:%s: %v", certFile, keyFile, err)
"could not load keypair %s:%s: %w", certFile, keyFile, err)
}
config.Certificates = []tls.Certificate{cert}
return nil
Expand Down

0 comments on commit e57b199

Please sign in to comment.