[Pkg-mozext-commits] [requestpolicy] 175/257: [imp] Environment: catch errors of startup/shutdown functions

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:20:10 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 782a543f93269d7417a558b02e98fd043a91e879
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue Dec 1 16:29:25 2015 +0100

    [imp] Environment: catch errors of startup/shutdown functions
---
 src/content/lib/environment.jsm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/content/lib/environment.jsm b/src/content/lib/environment.jsm
index 66367f6..3f95bd2 100644
--- a/src/content/lib/environment.jsm
+++ b/src/content/lib/environment.jsm
@@ -389,7 +389,11 @@ var Environment = (function () {
         let f = aFunctions.pop();
 
         // call the function
-        f.apply(null, aBootstrapArgs);
+        try {
+          f.apply(null, aBootstrapArgs);
+        } catch (e) {
+          Cu.reportError(e);
+        }
         // #ifdef LOG_ENVIRONMENT
         log.debug(`function called! (${aFunctions.length} functions left)`);
         // #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list