-
Notifications
You must be signed in to change notification settings - Fork 68
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
Document how to wrap an eyre::Report
with a different error type
#65
Comments
As stated and assuming by Now, if you meant "any arbitrary result-like type" when you wrote |
Yeah that sums it up pretty well and it makes sense why that would not be viable. I guess what I'm really looking for is a way to continue to have whatever error type Perhaps adding type args to I can create a PR for it if that is helpful :) I think it should still be backwards compatible due to the default type argument |
I'm not sure I understand. Can you give me an example of what you're trying to do? |
Wow I left this for a full year lol. I believe what I was asking for was a way to propagate the information about the chain of underlying errors to other error error libs like thiserror. I wanted to be able to use |
Wrapping a source error type as the cause of an
eyre::Report
is very straightforward with thewrap_err
function. But suppose I have aneyre::Result<()>
and want to convert it into aResult<(), ()>
without discarding the helpful backtrace/spantrace fromeyre
? Is that even possible?If it is, can it be documented?
The text was updated successfully, but these errors were encountered: