error-stack: How to ingest anyhow::Error?
#761
-
|
I found that I made a custom error type that implements |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Are you able to fix some of the formatting on your post? I'm finding it a little difficult to know what types you're dealing with. For example is this:
meant to be Because if so it's likely failing because you're trying to turn a |
Beta Was this translation helpful? Give feedback.
-
|
@Alfred-Mountfield thanks for the help. I'm still learning how to decipher larger error messages. You're correct. in case anyone else has this question, I'll show the work around I found, after I understood what was happening:
example: also had to do this: Is there a better way to do this? This is fine I suppose, it just doesn't feel ergonomic and I expect to encounter this difficulty quite frequently. It would be nice if all |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the expanded code, it helps a lot! So the main problem you're encountering with this is that They've made an active decision to not implement We've provided a blanket implementation of Maybe some of the comments in this discussion will help capture the philosophy too :) |
Beta Was this translation helpful? Give feedback.
-
|
It's now possible to create a |
Beta Was this translation helpful? Give feedback.
It's now possible to create a
Reportfromeyre::Reportoranyhow::Error: #763It will be available with
0.2.0.