diff --git a/js/xpconnect/loader/XPCOMUtils.jsm b/js/xpconnect/loader/XPCOMUtils.jsm index 020c6abee9b2..f892ee1bde3a 100644 --- a/js/xpconnect/loader/XPCOMUtils.jsm +++ b/js/xpconnect/loader/XPCOMUtils.jsm @@ -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]; }); },