Skip to content

Improve error callback example for $.ajax #372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Improve error callback example for $.ajax #372

wants to merge 1 commit into from

Conversation

tentonaxe
Copy link
Contributor

The error handler includes two of the three parameters, but doesn't actually do anything with them. This is a very common place where new developers will get the "Sorry, there was a problem!" and not know how to go further to figure out what the problem was. Adding the logging may help improve that.

The error handler includes two of the three parameters, but doesn't actually do anything with them. This is a very common place where new developers will get the "Sorry, there was a problem!" and not know how to go further to figure out what the problem was. Adding the logging may help improve that.
@eddiemonge
Copy link
Contributor

Should the console's be commented out with a note to uncomment them to see the actual error responses in case anyone does a copy and paste into their actual code without realizing that console could break some browsers?

(CLA signed)

arthurvr pushed a commit to arthurvr/learn.jquery.com that referenced this pull request Jan 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants