diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-10-10 14:15:55 -0500 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-10-10 19:27:21 -0500 |
commit | ff36a0359c4a1e0053ff43c6f0efbe075894612a (patch) | |
tree | e0afc157d95267f2289a658c2a6bb853eb972b95 /main.go | |
parent | 58f4ee7528d8ba0e5223a9ddf236739287b4ef4c (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.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |