[Pkg-mozext-commits] [greasemonkey] 02/20: GM 3.7beta3: Throws an error in the Browser Console (if metadata not found)
David Prévot
taffit at moszumanska.debian.org
Fri Mar 25 21:37:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit f321ad9832e73ba21903bf5a8d72569ec5a06c10
Author: janekptacijarabaci <janekptacijarabaci at seznam.cz>
Date: Fri Feb 19 11:58:11 2016 +0100
GM 3.7beta3: Throws an error in the Browser Console (if metadata not found)
---
modules/remoteScript.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/remoteScript.js b/modules/remoteScript.js
index 27f5844..5bd0d66 100644
--- a/modules/remoteScript.js
+++ b/modules/remoteScript.js
@@ -415,10 +415,12 @@ RemoteScript.prototype.parseScript = function(aSource, aFatal) {
Components.utils.import('chrome://greasemonkey-modules/content/parseScript.js', scope);
var script = scope.parse(aSource, this._uri, aFatal);
if (!script || script.parseErrors.length) {
- if (aFatal) {
+ if (!aFatal) {
this.cleanup(
stringBundle.GetStringFromName('error.parsingScript')
- + '\n' + script.parseErrors);
+ + '\n' + (script
+ ? script.parseErrors
+ : stringBundle.GetStringFromName("error.unknown")));
}
return false;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list