Add and fix errorlint

This commit is contained in:
Kristoffer Dalby 2021-11-15 16:26:41 +00:00
parent 2dde1242cf
commit 0c45f8d252
No known key found for this signature in database
GPG key ID: 09F62DC067465735
4 changed files with 5 additions and 6 deletions

View file

@ -46,7 +46,7 @@ func decodeMsg(
}
// fmt.Println(string(decrypted))
if err := json.Unmarshal(decrypted, output); err != nil {
return fmt.Errorf("response: %v", err)
return fmt.Errorf("response: %w", err)
}
return nil