mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-30 14:32:13 +00:00
Capture backtraces earlier
This commit is contained in:
parent
310dec9efc
commit
c06155e5fb
@ -300,7 +300,8 @@ where
|
|||||||
E: StdError + Send + Sync + 'static,
|
E: StdError + Send + Sync + 'static,
|
||||||
{
|
{
|
||||||
fn from(error: E) -> Self {
|
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