Bug 1621024 - Skip reporting errors if the file is not found in the L10nRegistry.loadSync. r=mossop

Differential Revision: https://phabricator.services.mozilla.com/D66538
This commit is contained in:
Zibi Braniecki committed 2020-03-16 15:49:58 +00:00
1 parent 8a058c9928
commit 1169019665
1 file changed
+3 -1
+3 -1
View File
@@ -670,7 +670,9 @@ L10nRegistry.loadSync = function(uri) {
charset: "UTF-8",
});
} catch (e) {
Cu.reportError(e);
if (e.result != Cr.NS_ERROR_FILE_NOT_FOUND) {
Cu.reportError(e);
}
}
} else if (e.result != Cr.NS_ERROR_FILE_NOT_FOUND) {
Cu.reportError(e);