griffithlab / civic-v2

CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer
https://civicdb.org
MIT License
19 stars 5 forks source link

Don't swallow errors in development mode #1045

Closed acoffman closed 5 months ago

acoffman commented 5 months ago

Previously, this error handler would catch any errors that are emitted, check for a load failure, and advise the user to reload the app.

That was fine in prod mode, but has the side effect of swallowing all errors in dev mode, which makes debugging difficult.

Retain that behavior in prod mode, but console log errors otherwise.