summaryrefslogtreecommitdiff
path: root/pkg/vpn/launcher_linux.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2020-08-04 19:28:43 +0200
committerRuben Pollan <meskio@sindominio.net>2020-08-13 17:16:09 +0200
commit7c4a4f5ae0c02f57eb9073fa8f412a38b8f79363 (patch)
treea261cd36e44917e6a0c5abc3c1dc4f9f0545e4e5 /pkg/vpn/launcher_linux.go
parentabb65c7fcf570e69480ca70c92d4e271a78ffee2 (diff)
Quit if there was an initializaton error
Let's close properly without segfaults :)
Diffstat (limited to 'pkg/vpn/launcher_linux.go')
-rw-r--r--pkg/vpn/launcher_linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vpn/launcher_linux.go b/pkg/vpn/launcher_linux.go
index f92cf6f..1280eae 100644
--- a/pkg/vpn/launcher_linux.go
+++ b/pkg/vpn/launcher_linux.go
@@ -230,7 +230,8 @@ func bitmaskRootPath() (string, error) {
return path, nil
}
}
- return "", errors.New("No bitmask-root found")
+ log.Println("Can't find bitmask-root")
+ return "", errors.New("nohelpers")
}
func getOpenvpnPath() string {