]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
tun: windows: unify error message format
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 8 Sep 2019 18:52:44 +0000 (13:52 -0500)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 8 Sep 2019 18:52:44 +0000 (13:52 -0500)
tun/tun_windows.go

index 43f0cecda654a005f1fc1149417dabcefe61e339..6a603a30d10bb51268ad5b4dbdc4bddaac7d759a 100644 (file)
@@ -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{