-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Display cause chain when alternate format is used #98
Comments
I also need this. Do you want me to make a PR? |
On the other hand, if you wrap the error into anyhow again, you can have it printed nicely without |
I like the approach proposed in dtolnay/anyhow#111 more than this one, actually. Just change anyhow and thiserror to print causes by default and make |
It's hard to say. I like to be able to do both. I.e. when printing vertically or when printing error messages together with backtraces. I don't mind if Other reasons to keep current behavior:
|
I see #233 was closed in favor of using
|
This would be very useful. Sometimes it is not practical to do a detour via anyhow. |
+1, if you're directly reporting an error produced by external code, wrapping it in |
As
thiserror
is complementary toanyhow
, andanyhow
supports{:#}
format, would be nice ifthiserror
errors supported it too. This way in codebases that mixthiserror
andanyhow
errors, it would be possible to use{:#}
everywhere and get cause chains printed for all errors.The text was updated successfully, but these errors were encountered: