mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 11:39:32 +02:00
errors: use %w verb directive (#419)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
74cd9eabbb
commit
12bae5cc43
11 changed files with 32 additions and 32 deletions
|
@ -21,7 +21,7 @@ func NewAEADCipher(secret []byte) (cipher.AEAD, error) {
|
|||
func NewAEADCipherFromBase64(s string) (cipher.AEAD, error) {
|
||||
decoded, err := base64.StdEncoding.DecodeString(s)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cryptutil: invalid base64: %v", err)
|
||||
return nil, fmt.Errorf("cryptutil: invalid base64: %w", err)
|
||||
}
|
||||
return NewAEADCipher(decoded)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue