Most bugs are in your error handling code

While reading What tools made you better programmer I came across a link to Error Handling in a Correctness-Critical Rust Project which included these two tidbits:

almost all (92%) of the catastrophic system failures are the result of incorrect handling of non-fatal errors explicitly signaled in software.

in 58% of the catastrophic failures, the underlying faults could easily have been detected through simple testing of error handling code.