Completion of error handling
I have looked at a few source files for your current software. I have noticed that some checks for return codes are missing.
Would you like to add more error handling for return values from functions like the following?
- mkdir ⇒ prep
- printf ⇒ dump_begin
Checking for errors in mkdir() would totally make sense and I ought to do it. I can't imagine what useful error checking could be done for printf() there, though.
Would you like to detect every error situation as early as possible?
Are you interested to apply aspect-oriented software development? How do you think about to encapsulate error detection and corresponding exception handling as a reusable aspect in your software?
No, not really.