You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use Display::fmt you can take advantage of thiserror's #[error(transparent)] feature, which gets you a cleaner output, but you lose the backtrace.
So it would be nice if there's an option for including the backtrace in the Display::fmt output.
The text was updated successfully, but these errors were encountered:
musjj
changed the title
Print backtrace without using Debug::fmt
Print backtrace with Display::fmtOct 6, 2024
I have an error like this:
I want to print the error along with the backtrace and it seems the only way to do it is to use
Debug::fmt
:But this wraps the error awkwardly like this:
If you use
Display::fmt
you can take advantage ofthiserror
's#[error(transparent)]
feature, which gets you a cleaner output, but you lose the backtrace.So it would be nice if there's an option for including the backtrace in the
Display::fmt
output.The text was updated successfully, but these errors were encountered: