From bb0b2514c0533edb3c4670cc01bdec735c8e2704 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 8 Sep 2019 13:52:44 -0500 Subject: tun: windows: unify error message format --- tun/tun_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tun') 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{ -- cgit v1.2.3