-
Notifications
You must be signed in to change notification settings - Fork 70
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
Non-200 Error Handling Question #38
Comments
update: i've wrapped my
|
another update: i was mistaken... tried setting
|
Right now You cannot prevent this with In a future version there might be a way to customize the handling of error responses. Currently the server is expected to always deliver a controlled response. |
During development, replacing the whole
body
with any and all server errors is great.For production, not so great.
Is there a way I could prevent the entire
body
from being replaced on a failedup.replace
call?So that I may print a simpler, user-friendly error message about the server error? instead of printing exactly what the XHR returned and blowing away the user's entire context / state?
I tried setting the failLayer to
auto
,page
,popup
andmodal
, so that i could just sweep the error under the rug so-to-speak, to give the user a chance to navigate away to something else...but they all fail with:
which breaks JS execution beyond that point, so my
.fail
handler never gets a chance to display my simplified error message.The text was updated successfully, but these errors were encountered: