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
currently the #[backtrace] attr has no option, and thiserror generated codes always use Backtrace::capture()
however, if user want some error always enable backtrace, they have to
write impl From<Err> Error manually
or set env RUST_BACKTRACE=1, but that will cause all backtraces are enabled, even they only want to enable a few error backtrace
if #[backtrace] add a new option force, like #[backtrace(force=true)], when user enable the force capture, thiserror generated codes can use Backtrace::force_capture() instead of Backtrace::capture()
The text was updated successfully, but these errors were encountered:
currently the
#[backtrace]
attr has no option, andthiserror
generated codes always useBacktrace::capture()
however, if user want some error always enable backtrace, they have to
impl From<Err> Error
manuallyRUST_BACKTRACE=1
, but that will cause all backtraces are enabled, even they only want to enable a few error backtraceif
#[backtrace]
add a new optionforce
, like#[backtrace(force=true)]
, when user enable the force capture,thiserror
generated codes can useBacktrace::force_capture()
instead ofBacktrace::capture()
The text was updated successfully, but these errors were encountered: