diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-08 13:52:44 -0500 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-08 13:52:44 -0500 |
commit | bb0b2514c0533edb3c4670cc01bdec735c8e2704 (patch) | |
tree | cafe81cb9f09175d1ed8255168e773f0628f892c /tun/tun_windows.go | |
parent | 7c97fdb1e34babf2697a815b8381037220e0c19b (diff) |
tun: windows: unify error message format
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r-- | tun/tun_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go index 43f0cec..6a603a3 100644 --- a/tun/tun_windows.go +++ b/tun/tun_windows.go @@ -72,12 +72,12 @@ func CreateTUNWithRequestedGUID(ifname string, requestedGUID *windows.GUID) (Dev // If so, we delete it, in case it has weird residual configuration. _, err = wt.DeleteInterface() if err != nil { - return nil, fmt.Errorf("Unable to delete already existing Wintun interface: %v", err) + return nil, fmt.Errorf("Error deleting already existing interface: %v", err) } } wt, _, err = WintunPool.CreateInterface(ifname, requestedGUID) if err != nil { - return nil, fmt.Errorf("Unable to create Wintun interface: %v", err) + return nil, fmt.Errorf("Error creating interface: %v", err) } tun := &NativeTun{ |