aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun/namespace_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun/wintun/namespace_windows.go')
-rw-r--r--tun/wintun/namespace_windows.go5
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
}