summaryrefslogtreecommitdiff
path: root/chrome/content/accountWizard/createInBackend.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/content/accountWizard/createInBackend.js')
-rw-r--r--chrome/content/accountWizard/createInBackend.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/content/accountWizard/createInBackend.js b/chrome/content/accountWizard/createInBackend.js
index 46dbbae..ed2424b 100644
--- a/chrome/content/accountWizard/createInBackend.js
+++ b/chrome/content/accountWizard/createInBackend.js
@@ -218,7 +218,7 @@ function doNotCache(inServer)
inServerQI.offlineDownload = false;
// and remove offline flag from all folders
var allFolders = inServer.rootFolder.descendants;
- for (let folder in fixIterator(allFolders, Components.interfaces.nsIMsgFolder))
+ for (let folder of fixIterator(allFolders, Components.interfaces.nsIMsgFolder))
folder.clearFlag(Components.interfaces.nsMsgFolderFlags.Offline);
}
@@ -236,8 +236,12 @@ function rememberPassword(server, password)
login.init(passwordURI, null, passwordURI, server.username, password, "", "");
try {
Services.logins.addLogin(login);
- } catch (e if e.message.includes("This login already exists")) {
- // TODO modify
+ } catch (e) {
+ if (e.message.includes("This login already exists")) {
+ // TODO modify
+ } else {
+ throw e;
+ }
}
}