Bug 1012750 - defineLazyModuleGetter should log failing URL if there was an error loading, r=mak

This commit is contained in:
Gijs Kruitbosch 2014-05-19 18:12:49 +01:00
Родитель 1472623df0
Коммит 08c675f07b
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -223,7 +223,12 @@ this.XPCOMUtils = {
{
this.defineLazyGetter(aObject, aName, function XPCU_moduleLambda() {
var temp = {};
Cu.import(aResource, temp);
try {
Cu.import(aResource, temp);
} catch (ex) {
Cu.reportError("Failed to load module " + aResource + " : " + ex);
throw ex;
}
return temp[aSymbol || aName];
});
},