commit c3ad5fd6f90f1c01d89e856101a8364e21ae2ac9 parent 63724c2625a586cc80844c8ee136553564d66397 Author: Simon Kornblith <simon@simonster.com> Date: Sun, 22 Jan 2012 14:30:33 -0500 Don't kill translator tester on invalid test data Diffstat:
| M | chrome/content/zotero/tools/testTranslators/translatorTester.js | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -63,7 +63,8 @@ Zotero_TranslatorTester = function(translator, type, debug) { try { var testObject = JSON.parse(test); } catch (e) { - Zotero.logError(e); + Zotero.logError(e+" parsing tests for "+translator.label); + return; } for(var i=0, n=testObject.length; i<n; i++) {