aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/TunnelImporter.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-02-22 13:03:03 +0530
committerRoopesh Chander <roop@roopc.net>2019-02-22 13:03:53 +0530
commitb01d09dfb505ce47b32f826692bc34eb9cb4400e (patch)
treedbfdce0c7a7fb41a0753d8164bb62e4b004ad8f9 /WireGuard/WireGuard/UI/TunnelImporter.swift
parentmacOS: Show 'quitting with active tunnel' only when appropriate (diff)
downloadwireguard-apple-b01d09dfb505ce47b32f826692bc34eb9cb4400e.tar.xz
wireguard-apple-b01d09dfb505ce47b32f826692bc34eb9cb4400e.zip
Importing: Give a clearer error message on importing an invalid config
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/TunnelImporter.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelImporter.swift b/WireGuard/WireGuard/UI/TunnelImporter.swift
index 0bf76e56..2c88219d 100644
--- a/WireGuard/WireGuard/UI/TunnelImporter.swift
+++ b/WireGuard/WireGuard/UI/TunnelImporter.swift
@@ -41,7 +41,7 @@ class TunnelImporter {
}
}
} else {
- errorPresenterType.showErrorAlert(title: tr("alertUnableToImportTitle"), message: tr("alertUnableToImportMessage"),
+ errorPresenterType.showErrorAlert(title: tr("alertBadConfigImportTitle"), message: tr(format: "alertBadConfigImportMessage (%@)", fileName),
from: sourceVC, onPresented: completionHandler)
}
}