commit 5235dcfa9f74081226eaa335c4b113d6c18d7200
parent d502de298173642cca4c556747afaa1b6c992bc4
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 20 Jul 2011 21:27:48 +0000
Show error messsage on parse error
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js
@@ -1169,7 +1169,8 @@ Zotero.Translate.Base.prototype = {
this._sandboxManager.eval("var translatorInfo = "+translator.code,
["detect"+this._entryFunctionSuffix, "do"+this._entryFunctionSuffix, "exports"]);
} catch(e) {
- this.complete(false, e);
+ this.complete(false, "Parse error");
+ return;
}
if(callback) callback();