wherr

Enhance Rust errors with file and line details using the `#[wherr]` macro for clearer debugging. (by joelonsql)

Wherr Alternatives

Similar projects and alternatives to wherr based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better wherr alternative or higher similarity.

wherr reviews and mentions

Posts with mentions or reviews of wherr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-23.
  • Enhance Rust errors with file and line details
    4 projects | news.ycombinator.com | 23 Aug 2023
    I've added a branch for this: https://github.com/joelonsql/wherr/tree/track_caller

    `src/lib.rs` is your code copy/pasted, with the addition of `impl<'a, E: StdError + 'a> From for Box` like suggested (and also just `Send`).

    I've also added a `fn inner_error<'a>(&'a self) -> &'a (dyn StdError + 'a);`, but not sure this is the proper way.

    I can't wrap my head around how to match on the inner error though, see `examples/matching_inner.rs`:

        match my_error_wrapped().unwrap_err() {

Stats

Basic wherr repo stats
2
49
6.8
6 months ago

joelonsql/wherr is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of wherr is Rust.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com