Hacker News new | ask | show | jobs
by shepmaster 976 days ago
Rust libraries like my [SNAFU] allow you to both add additional details and use the `?` operator:

    read_to_string(path).context(ConfigFileSnafu { path })?;
[SNAFU]: https://docs.rs/snafu/latest/snafu/