GenSpectrum / dashboard-components

https://genspectrum.github.io/dashboard-components/
GNU Affero General Public License v3.0
2 stars 0 forks source link

Rework error handling #366

Closed fengelniederhammer closed 3 months ago

fengelniederhammer commented 4 months ago

143 added an error boundary to our components. Most of the errors will however just be displayed as "Whoops, something went wrong".

We should give the user more indication on what went wrong in the expected cases, i.e. throw more UserFacingErrors.

chaoran-chen commented 4 months ago

Also, throwing an event would be useful so that the maintainer can catch and handle the error on a higher level if desired.