diff options
author | Avery Pennarun <apenwarr@tailscale.com> | 2019-10-23 00:08:52 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-02 01:44:58 -0600 |
commit | 6aefb61355c9da539383dd0c2bc5f2bb3dbb3963 (patch) | |
tree | 28ce32771d1ccfa46b2c7ea49aeba579ece24ed7 /tun | |
parent | 3dce460c88a84922fdeab246a1b3ebddf796093d (diff) |
wintun: split error message for create vs open namespace.
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
Diffstat (limited to 'tun')
-rw-r--r-- | tun/wintun/namespace_windows.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tun/wintun/namespace_windows.go b/tun/wintun/namespace_windows.go index f4316fe..5f8a041 100644 --- a/tun/wintun/namespace_windows.go +++ b/tun/wintun/namespace_windows.go @@ -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 } |