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

Retrieve backtrace from Report? #32

Closed
jbr opened this issue Aug 5, 2020 · 4 comments · Fixed by eyre-rs/stable-eyre#2
Closed

Retrieve backtrace from Report? #32

jbr opened this issue Aug 5, 2020 · 4 comments · Fixed by eyre-rs/stable-eyre#2

Comments

@jbr
Copy link

jbr commented Aug 5, 2020

Hi and thanks for eyre! I'm not sure if this is an eyre issue or an eyre-stable issue, but is there a way to get a reference to the backtrace::Backtrace on a Report, similar to anyhow::Error::backtrace?

@yaahc
Copy link
Collaborator

yaahc commented Aug 5, 2020

yea, this should be pretty trivial, let me go make the change in stable-eyre one sec.

@yaahc
Copy link
Collaborator

yaahc commented Aug 5, 2020

k, @jbr eyre-rs/stable-eyre#2 should add the necessary API. I'm a little worried that the backtrace() fn might eventually cause conflicts with eyre once backtrace stabilizes but some simple tests on nightly with the backtrace feature enabled made it seem like it would work fine so hopefully this is good, if not I can do a major version bump on stable-eyre without much issue.

@yaahc
Copy link
Collaborator

yaahc commented Aug 5, 2020

Alrighty, @jbr I just published 0.2.1 for stable-eyre, lmk how it works!

@jbr
Copy link
Author

jbr commented Aug 5, 2020

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants