Skip to content

Commit

Permalink
Make sure the exception has some level of parity with the error from …
Browse files Browse the repository at this point in the history
…json2.js.
  • Loading branch information
jeresig committed Jan 7, 2010
1 parent 308d6cd commit a9665bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ajax.js
Expand Up @@ -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
Expand Down

0 comments on commit a9665bb

Please sign in to comment.