nrc / error-docs

Documentation of Rust error handling
Creative Commons Attribution 4.0 International
48 stars 4 forks source link

Talk about failpoints #3

Open nrc opened 1 year ago

nrc commented 1 year ago

Talk about failpoints (and alternatives) in the testing section. Probably should reference the fail crate (https://docs.rs/fail/latest/fail/). I'm not actually sure failpoints are always the best solution, so this should be a discussion rather than a recommendation, but they are sometimes useful and are definitely doing something which is necessary