1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 09:08:10 +01:00

Add some more error handling code during the bootstrapping process.

This commit is contained in:
Kris Maglione
2010-12-30 20:20:57 -05:00
parent 5f47d83f76
commit 85947d4645
5 changed files with 46 additions and 23 deletions

View File

@@ -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 {
/* Adds support for data: URIs with chrome privileges
* and fragment identifiers.
*
@@ -216,4 +223,6 @@ else
var NSGetModule = XPCOMUtils.generateNSGetModule([AboutHandler, ChromeData, Dactyl, Shim]);
var EXPORTED_SYMBOLS = ["NSGetFactory", "global"];
} catch (e) { reportError(e) }
// vim: set fdm=marker sw=4 ts=4 et: