-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Managing errors #14
Comments
I fully agree that the problem exists. Any chance you could turn this RFC into one (or more) Pull Requests (with examples) so that we can comment line-by-line? |
Yes, but I just couldn't yet. I merely braindumped. |
After discussing with @JohanLorenzo I think we can rename this to "Manage errors" because this is broader than just the adapters start. |
Created PR #16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For reference, here is the current code: https://github.com/fxbox/foxbox/blob/998b6e0e1e1fd3cba3b711783eaa7000c2f66a0d/src/adapters/mod.rs#L61-L69
Basically we
unwrap
on any error. Some adapters are not returning an Error for some errors because of this.The end-user can't see panics because his only access is through a web browser. So we need another way to log the error instead and let the user act on it (especially we might need to be able to restart the foxbox from the browser -- but this is for another issue, I think).
First tentative solution:
Second tentative solution:
The text was updated successfully, but these errors were encountered: