We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
source
We want to enhance the visibility of the stack trace displayed with errors.
We need to use the source attribute in the errors defined with thiserror.
thiserror
Here is a Rust playground that summarize the usage of source attribute: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bf667c443696beb90106f6ae627a57b9
StdError
The text was updated successfully, but these errors were encountered:
Alenar
Successfully merging a pull request may close this issue.
Why
We want to enhance the visibility of the stack trace displayed with errors.
What
We need to use the
source
attribute in the errors defined withthiserror
.Here is a Rust playground that summarize the usage of
source
attribute:https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bf667c443696beb90106f6ae627a57b9
How
StdError
to use thesource
attribute.The text was updated successfully, but these errors were encountered: