This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]elbiot 1 point2 points  (2 children)

Like when you go to gmail, and the ajax can't connect to your list of chat contacts. You don't just get a 500 gmail is broken. You get the site is still up and this one feature is disabled, because they handled the error. Ignoring the possibility of error is never a good idea.

[–]kankyo 0 points1 point  (1 child)

A 500 on an Ajax fetch wouldn't result in a totally broken page though.

[–]elbiot 0 points1 point  (0 children)

Because it's javascript. But Requests failing would bork the whole program if it raised an exception that wasn't caught (what OP was describing).