summaryrefslogtreecommitdiff
path: root/notificator.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 /notificator.go
parent58f4ee7528d8ba0e5223a9ddf236739287b4ef4c (diff)
[feat] improve readability of errors
Let's not report 'bitmaskd is not running' in standalone mode. - Resolves: #35
Diffstat (limited to 'notificator.go')
-rw-r--r--notificator.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/notificator.go b/notificator.go
index 07e1b26..dec6186 100644
--- a/notificator.go
+++ b/notificator.go
@@ -40,7 +40,6 @@ By using this application, you agree to the Terms of Service available at https:
%[1]v version: %[2]s`
missingAuthAgent = `Could not find a polkit authentication agent. Please run one and try again.`
errorStartingVPN = `Can't connect to %s: %v`
- notRunning = `Is bitmaskd running? Start bitmask and try again.`
svgFileName = "riseupvpn.svg"
)
@@ -84,9 +83,9 @@ func (n *notificator) about(version string) {
Info()
}
-func (n *notificator) bitmaskNotRunning() {
- dialog.Message(printer.Sprintf(notRunning)).
- Title(printer.Sprintf("Can't contact bitmask")).
+func (n *notificator) initFailure(err error) {
+ dialog.Message(err.Error()).
+ Title(printer.Sprintf("Initialize error")).
Icon(getIconPath()).
Error()
}