From a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37 Mon Sep 17 00:00:00 2001 From: jeresig Date: Thu, 7 Jan 2010 12:25:50 -0500 Subject: [PATCH] Make sure the exception has some level of parity with the error from json2.js. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4