thiserror
thiserror copied to clipboard
Printing the captured backtrace on panic
Sorry if this is a duplicate, or there are rustc limitations that I am missing, but when using the nightly backtrace feature, I only get the following when panicing
thread 'types::s2k::tests::aead_skesk_msg' panicked at src/types/s2k.rs:523:16:
encode: IOError { source: Error { kind: WriteZero, message: "failed to write whole buffer" }, backtrace: Backtrace [{ fn: "std::backtrace_rs::backtrace::libunwind::trace", file: "/rustc/47ecded3525392b77843534bed69b4302f9af8d2/library/std/src/../../backtrace/src/backtrace/libunwind.rs", line: 105 }
....
and the actual backtrace is just the short one to where the panic happened. Is there a way to get this printed in a nicer format?