summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-10-10 14:15:55 -0500
committerRuben Pollan <meskio@sindominio.net>2018-10-10 19:27:21 -0500
commitff36a0359c4a1e0053ff43c6f0efbe075894612a (patch)
treee0afc157d95267f2289a658c2a6bb853eb972b95 /main.go
parent58f4ee7528d8ba0e5223a9ddf236739287b4ef4c (diff)
[feat] improve readability of errors
Let's not report 'bitmaskd is not running' in standalone mode. - Resolves: #35
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 1b824d6..6222cde 100644
--- a/main.go
+++ b/main.go
@@ -74,8 +74,7 @@ func main() {
b, err := initBitmask()
if err != nil {
- log.Print(err)
- notify.bitmaskNotRunning()
+ notify.initFailure(err)
return
}
defer b.Close()
@@ -108,7 +107,8 @@ func checkAndInstallHelpers(b bitmask.Bitmask, notify *notificator) error {
log.Printf("No polkit found")
notify.authAgent()
} else if err != nil {
- notify.bitmaskNotRunning()
+ log.Printf("Error checking vpn: %v", err)
+ notify.errorStartingVPN(err)
return err
}