stanfordnmbl / opencap-api

Apache License 2.0
5 stars 6 forks source link

Better errors #40

Closed AlbertoCasasOrtiz closed 1 year ago

AlbertoCasasOrtiz commented 1 year ago

Before, some errors were not properly captured and the messages returned to the viewer were cryptic (e.g., Error(s) occurred: [Object object]). Now every error is captured and returns a meaningful message.

This has to be merged with stanfordnmbl/opencap-viewer/pull/88.

Note: This touches almost EVERY function in the views.py file, so we have to thoroughly test everything before merging to prod.