build script error handling.