aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-20 23:36:34 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-21 03:24:11 -0600
commitd47c99646b832b30bdba7fb3fe22a883454544ab (patch)
treea7dd0486b933f81cd95837cef27b71c9dcde4f5b /ui/ui.go
parentringlogger: introduce basic file ring logging (diff)
downloadwireguard-windows-d47c99646b832b30bdba7fb3fe22a883454544ab.tar.xz
wireguard-windows-d47c99646b832b30bdba7fb3fe22a883454544ab.zip
errors: don't put periods at end of errors
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/ui.go b/ui/ui.go
index bbae9980..3f8f53a1 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -261,7 +261,11 @@ func RunUI() {
setServiceState(tunnel, state, err == nil)
if err != nil {
if mw.Visible() {
- walk.MsgBox(mw, "Tunnel Error", err.Error()+"\n\nPlease consult the log for more information.", walk.MsgBoxIconWarning)
+ errMsg := err.Error()
+ if len(errMsg) > 0 && errMsg[len(errMsg)-1] != '.' {
+ errMsg += "."
+ }
+ walk.MsgBox(mw, "Tunnel Error", errMsg+"\n\nPlease consult the log for more information.", walk.MsgBoxIconWarning)
} else {
tray.ShowError("WireGuard Tunnel Error", err.Error())
}