diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-07 21:54:12 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-13 14:42:54 +0100 |
commit | 2061a4904a8bf7c6274d354b8ef6d059306d661b (patch) | |
tree | 622f032b5fd47864ad3e8121ac55f7afcf2ceb9b /services/errors.go | |
parent | build: remove cgo (diff) | |
download | wireguard-windows-2061a4904a8bf7c6274d354b8ef6d059306d661b.tar.xz wireguard-windows-2061a4904a8bf7c6274d354b8ef6d059306d661b.zip |
global: switch to using %w instead of %v for Errorf
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'services/errors.go')
-rw-r--r-- | services/errors.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/errors.go b/services/errors.go index 7a441778..19bfebca 100644 --- a/services/errors.go +++ b/services/errors.go @@ -85,7 +85,7 @@ func DetermineErrorCode(err error, serviceError Error) (bool, uint32) { func CombineErrors(err error, serviceError Error) error { if serviceError != ErrorSuccess { if err != nil { - return fmt.Errorf("%v: %v", serviceError, err) + return fmt.Errorf("%v: %w", serviceError, err) } return serviceError } |