Bug 1263687 - Log add-on temporary install errors. r=ochameau
authorAndrew Swan <aswan@mozilla.com>
Tue, 12 Apr 2016 10:02:07 -0700
changeset 331044 b79aa52d7ee21d1be5b8488f512a3bddc2995ab4
parent 331043 a83cf78360d12c72997cb18131a6950f98ee8130
child 331045 32d2e4645dde3cdbdaec76721f733b95c8bf7ef5
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1263687
milestone48.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 1263687 - Log add-on temporary install errors. r=ochameau MozReview-Commit-ID: BlmLToQxUTr
devtools/client/aboutdebugging/components/addons-controls.js
--- a/devtools/client/aboutdebugging/components/addons-controls.js
+++ b/devtools/client/aboutdebugging/components/addons-controls.js
@@ -5,17 +5,17 @@
 /* eslint-env browser */
 /* globals AddonManager */
 
 "use strict";
 
 loader.lazyImporter(this, "AddonManager",
   "resource://gre/modules/AddonManager.jsm");
 
-const { Cc, Ci } = require("chrome");
+const { Cc, Ci, Cu } = require("chrome");
 const { createFactory, createClass, DOM: dom } =
   require("devtools/client/shared/vendor/react");
 const Services = require("Services");
 
 const AddonsInstallError = createFactory(require("./addons-install-error"));
 
 const Strings = Services.strings.createBundle(
   "chrome://devtools/locale/aboutdebugging.properties");
@@ -52,16 +52,17 @@ module.exports = createClass({
     // AddonManager.installTemporaryAddon accepts either
     // addon directory or final xpi file.
     if (!file.isDirectory() && !file.leafName.endsWith(".xpi")) {
       file = file.parent;
     }
 
     AddonManager.installTemporaryAddon(file)
       .catch(e => {
+        Cu.reportError(e);
         this.setState({ installError: e.message });
       });
   },
 
   render() {
     let { debugDisabled } = this.props;
 
     return dom.div({ className: "addons-top" },