From d21cc1912ccc3d63ee234aa893f6357e50e098f2 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Wed, 21 Mar 2012 19:29:59 +0100 Subject: [PATCH] Better error message for broken JSON --- src/static/js/json2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/json2.js b/src/static/js/json2.js index 663f932cd..d72b4be98 100644 --- a/src/static/js/json2.js +++ b/src/static/js/json2.js @@ -465,7 +465,7 @@ if (!JSON) } // If the text is not JSON parseable, then a SyntaxError is thrown. - throw new SyntaxError('JSON.parse'); + throw new SyntaxError('JSON.parse: ' + text); }; } }());