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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user