Crate wherr_macro

source ·
Expand description

wherr-macro crate provides a procedural macro to enhance Rust errors with file and line number information.

When using the provided wherr macro attribute on a function, any error returned by the ? operator within that function is automatically wrapped to include the file and line number where the error occurred.

Attribute Macros

  • Procedural macro attribute that processes a function to automatically wrap errors using the ? operator with file and line number details.