Skip to content
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

Error reporter in SNAFU #354

Closed
YjyJeff opened this issue Sep 27, 2022 · 2 comments
Closed

Error reporter in SNAFU #354

YjyJeff opened this issue Sep 27, 2022 · 2 comments

Comments

@YjyJeff
Copy link

YjyJeff commented Sep 27, 2022

According to the Error handling project, they recommend using the error reporter to report the error and

An error type with a source error should either return that error via source or include that source's error message in its own Display output, but never both.

Does SNAFU have the error reporter that can print the Error in multiple lines like anyhow ?

// Outputs
// Error: outermost error: second error: root error
//
// Caused by:
//    0: second error: root error
//    1: root error
@shepmaster
Copy link
Owner

shepmaster commented Sep 27, 2022

I happen to be working on that at the moment (#355) so it should be available in SNAFU 0.7.2 🤞. Please feel free to skim the docs in that PR and provide feedback.

@YjyJeff
Copy link
Author

YjyJeff commented Sep 27, 2022

Looking forward to it!

@YjyJeff YjyJeff closed this as completed Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants