summaryrefslogtreecommitdiff
path: root/notificator.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-04 20:39:35 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-04 20:39:35 +0200
commit8c3ba3a2d6a3db9d277c9d6b7532d125b39e1676 (patch)
treeb0ee3f0075f6d83346eef01c7f65d0542088165a /notificator.go
parent67e258a7a2217300a43c8aa0636bfe4d4aef6bdb (diff)
[feat] notify if it can't start the VPN0.0.1
- Resolves: #35
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)