Bug 1488375 - make lazyLoadFront errors more specific; r=ochameau
authoryulia <ystartsev@mozilla.com>
Wed, 10 Oct 2018 15:39:32 +0000
changeset 499142 4604dcda85aa20d4694df3c91b7f105a1b62b8e2
parent 499141 affa0f9b807d7cc49ed48e3677a89a98db55cb60
child 499143 92f90717c2a7b1fbf720135b5dea3dd4a6efac28
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1488375
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1488375 - make lazyLoadFront errors more specific; r=ochameau Differential Revision: https://phabricator.services.mozilla.com/D8197
devtools/shared/specs/index.js
--- a/devtools/shared/specs/index.js
+++ b/devtools/shared/specs/index.js
@@ -331,16 +331,17 @@ exports.lazyLoadSpec = lazyLoadSpec;
  */
 function lazyLoadFront(type) {
   const modulePath = lazyFronts.get(type);
   if (modulePath) {
     try {
       require(modulePath);
     } catch (e) {
       throw new Error(
-        `Unable to load lazy front module '${modulePath}' for type '${type}'`);
+        `Unable to load lazy front module '${modulePath}' for type '${type}'.
+        Error: ${e}`);
     }
     lazyFronts.delete(type);
     return true;
   }
   return false;
 }
 exports.lazyLoadFront = lazyLoadFront;