]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
wintun: split error message for create vs open namespace.
authorAvery Pennarun <apenwarr@tailscale.com>
Wed, 23 Oct 2019 04:08:52 +0000 (00:08 -0400)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 2 May 2020 07:44:58 +0000 (01:44 -0600)
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
tun/wintun/namespace_windows.go

index f4316fe84a3c28a840f9b85a0245cae4b14d5ebd..5f8a0413882c6964943dbc8ddd071b2d0794567c 100644 (file)
@@ -59,9 +59,12 @@ func initializeNamespace() error {
                        if err == windows.ERROR_PATH_NOT_FOUND {
                                continue
                        }
+                       if err != nil {
+                               return fmt.Errorf("OpenPrivateNamespace failed: %v", err)
+                       }
                }
                if err != nil {
-                       return fmt.Errorf("Create/OpenPrivateNamespace failed: %v", err)
+                       return fmt.Errorf("CreatePrivateNamespace failed: %v", err)
                }
                break
        }