From 41c70dd38e1084c0fc84aaeaba644a1a5f31b142 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Wed, 26 Jun 2019 15:46:50 -0600 Subject: [PATCH] fix debug registration against prod --- Signal/src/Models/AccountManager.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Signal/src/Models/AccountManager.swift b/Signal/src/Models/AccountManager.swift index d48a10c524..80d21b9ce9 100644 --- a/Signal/src/Models/AccountManager.swift +++ b/Signal/src/Models/AccountManager.swift @@ -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)") }