diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-07 21:56:32 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-07 21:56:32 +0100 |
commit | 82128c47d90a54faded017ad3e5bc61eb0c641db (patch) | |
tree | 91ec906e69ba373f1ef014dd1ce684cb459d44c8 /tun/wintun/memmod/memmod_windows_64.go | |
parent | c192b2eeec5dc8e21e8a6deb5e6dcceda91d649c (diff) |
global: switch to using %w instead of %v for Errorf
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/wintun/memmod/memmod_windows_64.go')
-rw-r--r-- | tun/wintun/memmod/memmod_windows_64.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/wintun/memmod/memmod_windows_64.go b/tun/wintun/memmod/memmod_windows_64.go index 46ac677..a66418f 100644 --- a/tun/wintun/memmod/memmod_windows_64.go +++ b/tun/wintun/memmod/memmod_windows_64.go @@ -29,7 +29,7 @@ func (module *Module) check4GBBoundaries(alignedImageSize uintptr) (err error) { windows.MEM_RESERVE|windows.MEM_COMMIT, windows.PAGE_READWRITE) if err != nil { - return fmt.Errorf("Error allocating memory block: %v", err) + return fmt.Errorf("Error allocating memory block: %w", err) } } return |