You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In dev (FLASK_DEBUG=true), showing a traceback is good. If we are not in dev, we currently show a 500 internal server error page.
To do better than that, we should show something to the user that is useful for reporting the error ("who do I call?"), describes how to recover, and enables them to continue using the app.
We should set this up so all exceptions generated by requests are caught. Does Flask have a built-in method to intercept request exceptions?
Probably a medium-term thing?
The text was updated successfully, but these errors were encountered:
TODO: We need to figure out how to handle errors with HTMX. E.g. when you delete a node from the node library, it will fail if that node is used in an assessment. It won't tell you why, the button just does nothing. How can we get the server-side error message (e.g. "Can't delete because this node is associated with surveys X, Y, Z") back into the app for the user to see?
Probably by returning some HTML and headers that tell HTMX to populate some reserved space with an error message?
And for the future user experience, what do we suggest as a remedy for the user? E.g. "If you want to hide the node from the library, archive it instead."
In dev (
FLASK_DEBUG=true
), showing a traceback is good. If we are not in dev, we currently show a500 internal server error
page.To do better than that, we should show something to the user that is useful for reporting the error ("who do I call?"), describes how to recover, and enables them to continue using the app.
We should set this up so all exceptions generated by requests are caught. Does Flask have a built-in method to intercept request exceptions?
Probably a medium-term thing?
The text was updated successfully, but these errors were encountered: