thiserror icon indicating copy to clipboard operation
thiserror copied to clipboard

[Feature] std::panic::Location support

Open onlycs opened this issue 1 year ago • 6 comments

closes #142

#[derive(Debug, Error)]
struct MyError {
  #[from] err: SomeOtherError,
  #[location] /*optional attr*/ location: &'static Location<'static>,
}

onlycs avatar Mar 06 '24 15:03 onlycs

This is a solid change. I've started using it in a project of mine and it's working great.

mpalmer avatar Jun 12 '24 01:06 mpalmer

+1

juntyr avatar Jul 16 '24 04:07 juntyr