From: jeresig Date: Thu, 7 Jan 2010 17:25:50 +0000 (-0500) Subject: Make sure the exception has some level of parity with the error from json2.js. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37;p=jquery.git Make sure the exception has some level of parity with the error from json2.js. --- diff --git a/src/ajax.js b/src/ajax.js index 4ba4548..73e1db6 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -584,7 +584,7 @@ jQuery.extend({ data = (new Function("return " + data))(); } else { - throw "JSON Syntax Error: " + data; + throw "JSON.parse"; } // If the type is "script", eval it in global context