throw error if build, test or run failed