Throwing error if build fails