Refactoring C code: Error handling is HARD, error REPORTING is much harder