Crate miette_helper

Crate miette_helper 

Source
Expand description

§Miette Helper

Simple crate providing helper macros for miette in libraries.

You will get “random” compiler errors, since I decided against checking the type to ensure compatibility with type aliases. please make sure the error isn’t mentioned in the macro doc before reporting.

Macros§

or_wrap_err
Turn an option into an Result with the given error message. If you get an error saying trait bound not satified make sure the first argument is an Option.
wrap_err
Turns Error into an Diagnostic and wraps it with the specified error