fix debug registration against prod

This commit is contained in:
Michael Kirk 2019-06-26 15:46:50 -06:00
parent 03349ca2cd
commit 41c70dd38e

View File

@ -96,6 +96,13 @@ public class AccountManager: NSObject {
switch error {
case PushRegistrationError.pushNotSupported(description: let description):
Logger.warn("Push not supported: \(description)")
case let networkError as NetworkManagerError:
// not deployed to production yet.
if networkError.statusCode == 404, IsUsingProductionService() {
Logger.warn("404 while requesting preauthChallenge: \(error)")
} else {
fallthrough
}
default:
owsFailDebug("error while requesting preauthChallenge: \(error)")
}