diff options
author | Egil Moeller <egil.moller@freecode.no> | 2012-03-21 19:29:59 +0100 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2012-03-21 19:29:59 +0100 |
commit | d21cc1912ccc3d63ee234aa893f6357e50e098f2 (patch) | |
tree | efdf9ecbad09f5cc33b2ff0c34e9dc805205e195 /src/static | |
parent | 50474dff1f1fd9c6a573c723a928f297651a5975 (diff) | |
download | etherpad-lite-d21cc1912ccc3d63ee234aa893f6357e50e098f2.zip |
Better error message for broken JSON
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/json2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/json2.js b/src/static/js/json2.js index 663f932c..d72b4be9 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); }; } }()); |