From ff36a0359c4a1e0053ff43c6f0efbe075894612a Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 10 Oct 2018 14:15:55 -0500 Subject: [feat] improve readability of errors Let's not report 'bitmaskd is not running' in standalone mode. - Resolves: #35 --- notificator.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'notificator.go') 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() } -- cgit v1.2.3