namib-project / nftables-rs

Safe abstraction for nftables JSON API (libnftables-json).
https://crates.io/crates/nftables
Apache License 2.0
32 stars 15 forks source link

return error instead of panic #8

Closed bits0rcerer closed 1 year ago

bits0rcerer commented 1 year ago

implement proper™ error handling in cases where it makes sense to return an error instead of panicking and let the library users decide if they want to panic or recover.

bits0rcerer commented 1 year ago

this might also affect #7.

jwhb commented 1 year ago

@bits0rcerer thank you for improving the error handling of the helper, this is a very valuable improvement.