Bug 1389503 - Don't fail when an SVG is not found. r=jdescottes, a=gchang
authorJason Laster <jason.laster.11@gmail.com>
Tue, 15 Aug 2017 10:01:00 -0400
changeset 423619 1e2abdc98512294903ff1c727d497b13b0bb3b8c
parent 423618 492951d0d127763ec1cb10f8cf25f16b61b50d72
child 423620 91a92e4f9136f2c8da9c060d60644cf9d76a9afe
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes, gchang
bugs1389503
milestone56.0
Bug 1389503 - Don't fail when an SVG is not found. r=jdescottes, a=gchang
devtools/client/debugger/new/debugger.js
--- a/devtools/client/debugger/new/debugger.js
+++ b/devtools/client/debugger/new/debugger.js
@@ -21834,18 +21834,20 @@ return /******/ (function(modules) { // 
 	  extjs: __webpack_require__(1043),
 	  showSources: __webpack_require__(1044),
 	  showOutline: __webpack_require__(1045)
 	};
 
 	module.exports = function (name, props) {
 	  // eslint-disable-line
 	  if (!svg[name]) {
-	    throw new Error("Unknown SVG: " + name);
-	  }
+	    console.warn("Unknown SVG: " + name);
+        return null;
+	  }
+
 	  var className = name;
 	  if (props && props.className) {
 	    className = `${name} ${props.className}`;
 	  }
 	  if (name === "subSettings") {
 	    className = "";
 	  }
 	  props = Object.assign({}, props, { className, src: svg[name] });