Skip to content.

plope

Personal tools
You are here: Home » Members » chrism's Home » My Experiences Creating a Build System » errors...
 
 

Comment

Above in this comment thread: My Experiences Creating a Build System » shell scripts

errors...

Posted by chrism at 2008-06-21 04:21 PM
buildit stops execution on errors (if a task returns with a nonzero exit code). Maybe I don't understand how you're defining "error".

errors

Errors are anything that gets the build wrong. Exceptions should be raised in case of an error, but of course they aren't always. E.g., if a script has a non-zero return code, or if a file is only partially fetched.

Good error handling is not just halting on an error. You have to show everything that led up to the error, hopefully leave out some things that are distracting, give a clear explanation of the error. If it's an error that is not entirely unexpected, then there's other ways to gracefully handle it that go beyond ignoring or fully aborting because of the error. If it is a fatal but expected error you should suggest ways of resolving the error in the system.