Re:Overview of Rust error handling libraries
by monocasa on Friday November 22, 2019 @11:51AM
(#21607326)
I mean, don't just bubble out errors until they lack context then. Rewrap them to add more context like ConfFileReadError(io::Error).
[ Parent
| on HN ]
Re:Overview of Rust error handling libraries
by shepmaster on Friday November 22, 2019 @01:40PM
(#21608542)
That would be a major point of my library, SNAFU, discussed in the article.
Re:Overview of Rust error handling libraries
by thenewwazoo on Friday November 22, 2019 @11:53AM
(#21607343)
I wholeheartedly agree with this sentiment. Another alternative, at the cost of some log noise, is to emit a meaningful log message at every call site that has to handle the error condition.