wintun: split error message for create vs open namespace.

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
Avery Pennarun 2019-10-23 00:08:52 -04:00 committed by Jason A. Donenfeld
parent 3dce460c88
commit 6aefb61355

View 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
}