aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-01-07 12:25:50 -0500
committerjeresig <jeresig@gmail.com>2010-01-07 12:25:50 -0500
commita9665bbe9bb50b060b3f8f2f5facf2e1d1115f37 (patch)
tree66c2a7f6808de7fa719f4388976c8b89c2c55977
parent308d6cdad023da190ace2a698ee4815ed8dad9c5 (diff)
downloadjquery-a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37.tar.gz
jquery-a9665bbe9bb50b060b3f8f2f5facf2e1d1115f37.zip
Make sure the exception has some level of parity with the error from json2.js.
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 4ba4548de..73e1db689 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