diff --git a/WireGuard/WireGuard/UI/macOS/AppDelegate.swift b/WireGuard/WireGuard/UI/macOS/AppDelegate.swift index 994495e..a08f9dc 100644 --- a/WireGuard/WireGuard/UI/macOS/AppDelegate.swift +++ b/WireGuard/WireGuard/UI/macOS/AppDelegate.swift @@ -13,7 +13,10 @@ class AppDelegate: NSObject, NSApplicationDelegate { TunnelsManager.create { [weak self] result in guard let self = self else { return } - guard result.isSuccess else { return } // TODO: Show alert + if let error = result.error { + ErrorPresenter.showErrorAlert(error: error, from: nil) + return + } let tunnelsManager: TunnelsManager = result.value! let statusMenu = StatusMenu(tunnelsManager: tunnelsManager)