commit c8d5e0b8c6e27f27946db7c5fad86dd2825046b1 parent 81693ca665e54b8cd63764c7535aba263c6726a2 Author: Simon Kornblith <simon@simonster.com> Date: Mon, 4 Jul 2011 17:29:35 +0000 Complete with error if translator fails to load Diffstat:
| M | chrome/content/zotero/xpcom/translation/translate.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -936,7 +936,10 @@ Zotero.Translate.Base.prototype = { */ "_translateHaveTranslator":function() { // load translators - if(!this._loadTranslator(this.translator[0])) return; + if(!this._loadTranslator(this.translator[0])) { + this.complete(false, new Error("Translator could not be loaded")); + return; + } // set display options to default if they don't exist if(!this._displayOptions) this._displayOptions = this.translator[0].displayOptions;