aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ErrorPresenter: Support onPresented for showErrorAlert(title:,message:)Roopesh Chander2018-12-121-3/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: alertText() can be nilRoopesh Chander2018-12-111-1/+1
| | | | | | Indicating that no alert is to be shown for that error. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Use WireGuardAppError and WireGuardResult throughout the appRoopesh Chander2018-12-071-29/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Introduce a WireGuardAppError protocol to manage errorsRoopesh Chander2018-12-071-28/+2
| | | | | | The alert strings shall be located next to where the errors are declared. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Cleanup Tunnels Manager errorsRoopesh Chander2018-12-071-19/+30
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error presenter: Always handle the passed errorRoopesh Chander2018-12-071-4/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Error out when tunnel activation fails because there's no internetRoopesh Chander2018-12-031-1/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Exporting: Refactor out zip exporting into a separate classRoopesh Chander2018-11-151-0/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Refactor out zip importing into a separate classRoopesh Chander2018-11-141-0/+8
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: When activating while another tunnel is active, deactivate the other tunnelRoopesh Chander2018-11-101-15/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: There are no DNS errors to handle in the app nowRoopesh Chander2018-11-101-2/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: .resolvingEndpointDomains is not longer a valid statusRoopesh Chander2018-11-081-2/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: account for no or many endpointsJason A. Donenfeld2018-11-051-2/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ErrorPresenter: showErrorAlert takes an onPresentated handlerRoopesh Chander2018-11-031-2/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: get rid of index managementJason A. Donenfeld2018-11-031-0/+2
| | | | | | | No need for premature optimization. There aren't that many tunnels most of the time, and calling sort on a partially sorted array is fast. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Global: no periods at the end of error messagesJason A. Donenfeld2018-11-031-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Global: OK over OkJason A. Donenfeld2018-11-011-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Global: fix up stringsJason A. Donenfeld2018-11-011-7/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Tunnel errors: Consolidate tunnel activation errors into ErrorPresenterRoopesh Chander2018-11-011-0/+28
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: An ErrorPresenter class to consolidate showing of error alertsRoopesh Chander2018-11-011-0/+46
Signed-off-by: Roopesh Chander <roop@roopc.net>