[Pkg-mozext-commits] [requestpolicy] 184/257: [ref] coding style: convert another catch-if
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:11 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 7c9d3b2efe54154b91d0a3b7e8e6545576e5ec99
Author: Martin Kimmerle <dev at 256k.de>
Date: Thu Dec 3 12:26:23 2015 +0100
[ref] coding style: convert another catch-if
---
src/content/lib/script-loader.jsm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/content/lib/script-loader.jsm b/src/content/lib/script-loader.jsm
index 4725197..bb4f45c 100644
--- a/src/content/lib/script-loader.jsm
+++ b/src/content/lib/script-loader.jsm
@@ -141,12 +141,14 @@ var ScriptLoader = (function() {
if (moduleID in modulesCurrentlyBeingImported) {
delete modulesCurrentlyBeingImported[moduleID];
}
- } catch (e if e.result === Cr.NS_ERROR_FILE_NOT_FOUND) {
- logSevereError('Failed to import module with ID "' + moduleID +
- '", the file was not found!', e);
} catch (e) {
- logSevereError('Failed to import module with ID "' + moduleID +
- '".', e);
+ if (e.result === Cr.NS_ERROR_FILE_NOT_FOUND) {
+ logSevereError('Failed to import module with ID "' + moduleID +
+ '", the file was not found!', e);
+ } else {
+ logSevereError('Failed to import module with ID "' + moduleID +
+ '".', e);
+ }
}
return scope;
},
--
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