mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-28 05:21:34 +00:00
Capture backtraces earlier
This commit is contained in:
parent
310dec9efc
commit
c06155e5fb
@ -300,7 +300,8 @@ where
|
||||
E: StdError + Send + Sync + 'static,
|
||||
{
|
||||
fn from(error: E) -> Self {
|
||||
Error::new(error)
|
||||
let backtrace = backtrace_if_absent!(error);
|
||||
Error::from_std(error, backtrace)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user