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

common_failures - diffferent expectation #40

Closed
drahnr opened this issue Mar 15, 2018 · 3 comments
Closed

common_failures - diffferent expectation #40

drahnr opened this issue Mar 15, 2018 · 3 comments

Comments

@drahnr
Copy link

drahnr commented Mar 15, 2018

Given that error-chains quick-error presents the whole chain of failure causes, I expected this to be the same for common_failures but it only displays the top level error cause.

There was a ticket for failure showing various approaches:
rust-lang-deprecated/failure#76

@emk
Copy link
Owner

emk commented Mar 19, 2018

As you can see here, the quick_error! macro calls display_causes_and_backtrace, which in turn loops over and displays all causes.

Could you please provide some more detail about what you're seeing here? What happens if you manually print the cause of your error?

@drahnr
Copy link
Author

drahnr commented Mar 30, 2018

I'll double check, but I am pretty positive the result - given I provided context - was only one level deep. Verifying version too.

@emk
Copy link
Owner

emk commented May 4, 2024

The common_failures crate has been deprecated, because failure has been deprecated. Sorry we never figured this out!

@emk emk closed this as completed May 4, 2024
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