aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-08 19:28:38 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:34 +0530
commitfc03c635c1e85b306c456cd9517201d05bf3d187 (patch)
treefd31c6b0b1d38db14565e86be6d484d15ce96021 /WireGuard/WireGuard/UI
parentmacOS: Edit view: Validate and save (diff)
downloadwireguard-apple-fc03c635c1e85b306c456cd9517201d05bf3d187.tar.xz
wireguard-apple-fc03c635c1e85b306c456cd9517201d05bf3d187.zip
Parsing: Error on duplicate entries
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ParseError+WireGuardAppError.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ParseError+WireGuardAppError.swift b/WireGuard/WireGuard/UI/macOS/ParseError+WireGuardAppError.swift
index 4a1c890..a85df22 100644
--- a/WireGuard/WireGuard/UI/macOS/ParseError+WireGuardAppError.swift
+++ b/WireGuard/WireGuard/UI/macOS/ParseError+WireGuardAppError.swift
@@ -45,6 +45,8 @@ extension TunnelConfiguration.ParseError: WireGuardAppError {
return (tr(format: "macAlertUnrecognizedPeerKey (%@)", value), tr("macAlertInfoUnrecognizedPeerKey"))
case .multiplePeersWithSamePublicKey:
return (tr("alertInvalidPeerMessagePublicKeyDuplicated"), "")
+ case .multipleEntriesForKey(let value):
+ return (tr(format: "macAlertMultipleEntriesForKey (%@)", value), "")
}
}
}