Mark the build Failed if any errors are found.