-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
11b1664
to
d374799
Compare
Any chance we could use For example, in |
My idea was to use I never worked with |
I think
Since that would bubble up in the overseer, we would have annotations there. I just would prefer to very concretely and explcitily typed errors being passed around. |
Yeah, I do also like Contextualized(&'static str, Box<SubsystemError>), and impl SubsystemError {
fn context(self, ctx: &'static str) -> Self {
Self::Contextualized(ctx, Box::new(self))
}
} and then do |
Another error library option is https://github.com/yaahc/color-eyre which is developed by one the Error Handling Project Group's shepherds, see this video for more details. |
Ah yes! I remember, there was a video from rust conf this year, but it's mostly an I think I have a rough idea and will go for |
47c9fe9
to
0a676a8
Compare
This comment has been minimized.
This comment has been minimized.
988e3cb
to
d4e231d
Compare
d4e231d
to
3acbe56
Compare
c3f654b
to
acdcc3b
Compare
@drahnr it seems after the CI update to latest nightly, you need to update |
09ce053
to
755f919
Compare
bot merge |
Waiting for commit status. |
Checks failed; merge aborted. |
As discussed with @bkchr we need debug info in errors and the rationale behind not including them (i.e. such as in
ring
) is not a rational decision given rust error handling and the scope of our implementation.