aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 12:32:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 20:19:50 +0200
commite725f38bdbe192bb280009c0e24e93fd4b47cb7b (patch)
tree7fa96e664467adbd4fd7207a53f7bc9fdcd67c69 /ui
parentui: tunnelconfig -> tunneledit (diff)
downloadwireguard-windows-e725f38bdbe192bb280009c0e24e93fd4b47cb7b.tar.xz
wireguard-windows-e725f38bdbe192bb280009c0e24e93fd4b47cb7b.zip
ui: fix quoting in error strings
Diffstat (limited to 'ui')
-rw-r--r--ui/tunneleditdialog.go2
-rw-r--r--ui/tunnelspage.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/tunneleditdialog.go b/ui/tunneleditdialog.go
index 0abed9ed..7efd68d2 100644
--- a/ui/tunneleditdialog.go
+++ b/ui/tunneleditdialog.go
@@ -299,7 +299,7 @@ func (dlg *TunnelEditDialog) onSaveButtonClicked() {
}
for _, name := range names {
- if name == newName {
+ if strings.ToLower(name) == strings.ToLower(newName) {
walk.MsgBox(dlg, "Invalid configuration", fmt.Sprintf("Another tunnel already exists with the name ā€˜%sā€™.", newName), walk.MsgBoxIconWarning)
return
}
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go
index a74b6210..8650ece6 100644
--- a/ui/tunnelspage.go
+++ b/ui/tunnelspage.go
@@ -216,7 +216,7 @@ func (tp *TunnelsPage) importFiles(paths []string) {
configCount := 0
for _, unparsedConfig := range unparsedConfigs {
if existingLowerTunnels[strings.ToLower(unparsedConfig.Name)] {
- lastErr = fmt.Errorf("The tunnel \"%s\" already exists", unparsedConfig.Name)
+ lastErr = fmt.Errorf("Another tunnel already exists with the name ā€˜%sā€™", unparsedConfig.Name)
continue
}
config, err := conf.FromWgQuick(unparsedConfig.Config, unparsedConfig.Name)