openSUSE / libpathrs

C-friendly API to make path resolution safer on Linux.
GNU Lesser General Public License v3.0
80 stars 6 forks source link

error: move to thiserror? #25

Closed cyphar closed 3 months ago

cyphar commented 4 years ago

This is basically a reboot of the snafu porting effort. I will need to consider this for a bit longer, but I like that error-chain has a much more opaque-to-the-user API -- all that's exposed is ErrorKind. Also the foreign_links feature composes much better than snafu. But I'll need to think about this a lot more (and probably create some test examples).

HadrienG2 commented 4 years ago

Just in case you haven't seen this blog post pass by, here's a nice overview/comparison of the various available Rust error handling crates.

cyphar commented 3 months ago

Based on my experience with https://github.com/cyphar/paperback, I suspect thiserror is going to be nicer. We will need to roll our own backtrace collection code though.

cyphar commented 3 months ago

Done in 500b5ff9157519639395de7384424b621ae8b7c3.