From 3afcee04bef286c486cac28fee23b727a6fb1af8 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Tue, 5 Mar 2019 15:24:08 +0530 Subject: TunnelsManager: addMultiple() should also return the last error Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/TunnelImporter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WireGuard/WireGuard/UI/TunnelImporter.swift') diff --git a/WireGuard/WireGuard/UI/TunnelImporter.swift b/WireGuard/WireGuard/UI/TunnelImporter.swift index 4fabd07..a306a7e 100644 --- a/WireGuard/WireGuard/UI/TunnelImporter.swift +++ b/WireGuard/WireGuard/UI/TunnelImporter.swift @@ -56,7 +56,7 @@ class TunnelImporter { } } dispatchGroup.notify(queue: .main) { - tunnelsManager.addMultiple(tunnelConfigurations: configs.compactMap { $0 }) { numberSuccessful in + tunnelsManager.addMultiple(tunnelConfigurations: configs.compactMap { $0 }) { numberSuccessful, _ in if !configs.isEmpty && numberSuccessful == configs.count { completionHandler?() return -- cgit v1.2.3-59-g8ed1b