Skip to content

Commit b2bf796

Browse files
author
Johnny Lin
committed
Additional clarity in error message about Apple outages
1 parent 0b18bfe commit b2bf796

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

LockdowniOS/HomeViewController.swift

+9-4
Original file line numberDiff line numberDiff line change
@@ -1023,10 +1023,15 @@ class HomeViewController: BaseViewController, AwesomeSpotlightViewDelegate, Load
10231023
self.performSegue(withIdentifier: "showSignup", sender: self)
10241024
})
10251025
default:
1026-
if (apiError.code == kApiCodeNegativeError && getVPNCredentials() != nil) {
1027-
DDLogError("Unknown error -1 from API, but VPNCredentials exists, so activating anyway.")
1028-
self.updateVPNButtonWithStatus(status: .connecting)
1029-
VPNController.shared.setEnabled(true)
1026+
if (apiError.code == kApiCodeNegativeError) {
1027+
if (getVPNCredentials() != nil) {
1028+
DDLogError("Unknown error -1 from API, but VPNCredentials exists, so activating anyway.")
1029+
self.updateVPNButtonWithStatus(status: .connecting)
1030+
VPNController.shared.setEnabled(true)
1031+
}
1032+
else {
1033+
self.showPopupDialog(title: NSLocalizedString("Apple Outage", comment: ""), message: "There is currently an outage at Apple which is preventing Secure Tunnel from activating. This will likely by resolved by Apple soon, and we apologize for this issue in the meantime." + NSLocalizedString("\n\n If this error persists, please contact team@lockdownhq.com.", comment: ""), acceptButton: NSLocalizedString("Okay", comment: ""))
1034+
}
10301035
}
10311036
else {
10321037
_ = self.popupErrorAsApiError(error)

0 commit comments

Comments
 (0)