diff --git a/browser/base/content/browser-syncui.js b/browser/base/content/browser-syncui.js index 3a8fe85c7737..e150a944f1a4 100644 --- a/browser/base/content/browser-syncui.js +++ b/browser/base/content/browser-syncui.js @@ -328,6 +328,10 @@ let gSyncUI = { _onSyncEnd: function SUI__onSyncEnd(success) { let title = this._stringBundle.GetStringFromName("error.sync.title"); if (!success) { + if (Weave.Status.login != Weave.LOGIN_SUCCEEDED) { + this.onLoginError(); + return; + } let error = Weave.Utils.getErrorString(Weave.Status.sync); let description = this._stringBundle.formatStringFromName("error.sync.description", [error], 1);