diff --git a/common/components/commandline-handler.js b/common/components/commandline-handler.js index 6998b34d..52d7682b 100644 --- a/common/components/commandline-handler.js +++ b/common/components/commandline-handler.js @@ -4,6 +4,13 @@ // given in the LICENSE.txt file included with this file. "use strict"; +function reportError(e) { + dump("dactyl: components: " + e + "\n" + (e.stack || Error().stack)); + Cu.reportError(e); +} + +try { + var global = this; var Cc = Components.classes; var Ci = Components.interfaces; @@ -53,4 +60,6 @@ else var NSGetModule = XPCOMUtils.generateNSGetModule([CommandLineHandler]); var EXPORTED_SYMBOLS = ["NSGetFactory", "global"]; +} catch (e) { reportError(e) } + // vim: set fdm=marker sw=4 ts=4 et: