summaryrefslogtreecommitdiff
path: root/notificator.go
diff options
context:
space:
mode:
Diffstat (limited to 'notificator.go')
-rw-r--r--notificator.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/notificator.go b/notificator.go
index 353bbeb..dc7993c 100644
--- a/notificator.go
+++ b/notificator.go
@@ -34,6 +34,7 @@ This service paid for entirely by donations from users like you. Please donate a
By using this application, you agree to the Terms of Service available at riseup.net/tos. This service is provide as-is, without any warranty, and is intended for people who work to make the world a better place.`
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"
)
@@ -87,6 +88,13 @@ func (n *notificator) authAgent() {
Error()
}
+func (n *notificator) errorStartingVPN(err error) {
+ dialog.Message(printer.Sprintf(errorStartingVPN, applicationName, err)).
+ Title(printer.Sprintf("Error starting VPN")).
+ Icon(getSVGPath()).
+ Error()
+}
+
func getSVGPath() string {
wd, _ := os.Getwd()
svgPath := path.Join(wd, svgFileName)