Skip to content

Add #[track_caller] to IntoRootcause::into_rootcause - #200

Open
funsafemath wants to merge 1 commit into
rootcause-rs:mainfrom
funsafemath:main
Open

Add #[track_caller] to IntoRootcause::into_rootcause#200
funsafemath wants to merge 1 commit into
rootcause-rs:mainfrom
funsafemath:main

Conversation

@funsafemath

Copy link
Copy Markdown
Contributor

Getting the location of the line that contains .into_rootcause() is arguably better than getting /home/$USER/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rootcause-0.13.0/src/compat/boxed_error.rs:37

also, unrelated to this PR, the eyre compat uses either Debug or Display depending on the used formatting, afaik eyre always formats the error details with Display, but when the error itself is formatted with Display, it prints only the top error, and with Debug it prints the full chain, would it make sense to change it to use Debug unconditionally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant