Bug 1397530 - report all exceptions checking the account status. r?eoger
MozReview-Commit-ID: ClCaDhgdQ0a
--- a/services/fxaccounts/FxAccounts.jsm
+++ b/services/fxaccounts/FxAccounts.jsm
@@ -1206,16 +1206,19 @@ FxAccountsInternal.prototype = {
if (error && error.code && error.code == 401) {
let error = new Error("Verification status check failed");
this._rejectWhenVerified(currentState, error);
return;
}
if (error && error.retryAfter) {
// If the server told us to back off, back off the requested amount.
nextPollMs = (error.retryAfter + 3) * 1000;
+ log.warn(`the server rejected our email status check and told us to try again in ${nextPollMs}ms`);
+ } else {
+ log.error(`checkEmailStatus failed to poll`, error);
}
}
if (why == "push") {
return;
}
let pollDuration = Date.now() - this.pollStartDate;
// Polling session expired.
if (pollDuration >= this.POLL_SESSION) {