-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Rework error representation #517
Conversation
This will also get a revamp of parts of the OAuth2 code which is a bit horribly organized. |
|
Removed |
a0a9ee9
to
f1bcd13
Compare
2b24e78
to
5270c7a
Compare
5c04ab3
to
0691c5a
Compare
(well, damn. Of course coverage increases if we delete ~1k LoC) |
b7442e5
to
ed555ea
Compare
* start error repr rework * add kitsune-error crate * progress * rm unused dependencies * progress * progress * progress * progress * finish * fix checks * fix tests * enable serde for garde * Add codecov token * remove some more error enums * remove another enum * remove httperror * improve somewhat * make it possible to return responses as the 'body' * use try-block polyfills everywhere
Closes #500
So, for the beginning I simply collapsed all the enum cases into a single "Other" case which has the representations of
eyre::Report
which is fairly compact from a memory usage standpoint.That will drop the stack usage of errors down significantly (by at least 4x).
I'm still not convinced whether this is the correct solution.