Open wilfreddenton opened 1 year ago
One of the challenges is that superconsole needs to propagate errors up from Components. I guess we could resolve that by Component still using anyhow::Result and wrapping any errors in some superconsole error type. I think a better approach may be for the user to configure superconsole with the error type that they want (probably requiring that there's a From
@stepancheg - given the solution to #6 is now landed, how easy it is to do the error generalisation?
I recently started using
superconsole
and I really like it. Thanks for making this! 🙏The use of
anyhow
presents a bit of an ergonomics problem however. For example, in my application I useeyre
and I have to manuallymap_err
your anyhow errors toeyre::Report
s. It seems that under the hood you are usingthiserror
to define errors. Perhaps these could be brought up to the surface instead of wrapping them inanyhow::Error
?