therungg / therun-frontend

Frontend for therun.gg
https://therun-fr-therun.vercel.app
MIT License
23 stars 8 forks source link

feat: add pseudo-ErrorBoundary for session errors #237

Closed florence-wolfe closed 2 months ago

florence-wolfe commented 2 months ago

What is this?

This PR adds error handling for the session endpoint. If it fails to retrieve an error it tends to bubble up into a very cryptic error for the user. This solves the issue by catching the errors, explicitly raising known errors, and displaying a recovery UX for the user to reset the session.

How does this work?

BEFORE:

image

AFTER:

image