eyre-rs / eyre

A trait object based error handling type for easy idiomatic error handling and reporting in Rust applications
Apache License 2.0
1.35k stars 63 forks source link

fix: `ok_or_eyre` not using `track_caller` #140

Closed ten3roberts closed 8 months ago

ten3roberts commented 8 months ago

ok_or_eyre did not use track_caller, which meant the error location was incorrect compared to the equivalent anyhow::context feature

LeoniePhiline commented 8 months ago

Thanks, good catch!