aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tray.go
diff options
context:
space:
mode:
authorAlexander Neumann <an2048@gmail.com>2019-07-25 15:12:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-29 09:45:07 +0200
commit0dce279a896c604054f835ac921faa20af26b610 (patch)
treeb267dbf46cd412aa6f13b7d87ca7a586aed08d84 /ui/tray.go
parentui: use now exposed ItemCountChanged event (diff)
downloadwireguard-windows-0dce279a896c604054f835ac921faa20af26b610.tar.xz
wireguard-windows-0dce279a896c604054f835ac921faa20af26b610.zip
ui: improve error handling
Signed-off-by: Alexander Neumann <an2048@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--ui/tray.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 26e06c4d..93b12c4c 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -160,11 +160,11 @@ func (tray *Tray) addTunnelAction(tunnel *manager.Tunnel) {
tray.mtw.tunnelsPage.listView.selectTunnel(tclosure.Name)
tray.mtw.tabs.SetCurrentIndex(0)
if oldState == manager.TunnelUnknown {
- walk.MsgBox(tray.mtw, "Failed to determine tunnel state", err.Error(), walk.MsgBoxIconError)
+ showErrorCustom(tray.mtw, "Failed to determine tunnel state", err.Error())
} else if oldState == manager.TunnelStopped {
- walk.MsgBox(tray.mtw, "Failed to activate tunnel", err.Error(), walk.MsgBoxIconError)
+ showErrorCustom(tray.mtw, "Failed to activate tunnel", err.Error())
} else if oldState == manager.TunnelStarted {
- walk.MsgBox(tray.mtw, "Failed to deactivate tunnel", err.Error(), walk.MsgBoxIconError)
+ showErrorCustom(tray.mtw, "Failed to deactivate tunnel", err.Error())
}
})
}