diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-08 19:28:38 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-14 14:52:34 +0530 |
commit | fc03c635c1e85b306c456cd9517201d05bf3d187 (patch) | |
tree | fd31c6b0b1d38db14565e86be6d484d15ce96021 /WireGuard/WireGuard/UI/macOS | |
parent | macOS: Edit view: Validate and save (diff) | |
download | wireguard-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/macOS')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ParseError+WireGuardAppError.swift | 2 |
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), "") } } } |