diff --git a/page/ajax/jquery-ajax-methods.md b/page/ajax/jquery-ajax-methods.md index 6f919f05..fb8fe6d3 100644 --- a/page/ajax/jquery-ajax-methods.md +++ b/page/ajax/jquery-ajax-methods.md @@ -52,8 +52,11 @@ $.ajax({ // code to run if the request fails; the raw request and // status codes are passed to the function - error: function( xhr, status ) { + error: function( xhr, status, errorThrown ) { alert( "Sorry, there was a problem!" ); + console.log( "Error: " + errorThrown ); + console.log( "Status: " + status ); + console.dir( xhr ); }, // code to run regardless of success or failure