Set status to "failed" if the log contains errors

If there is an error during catalog compilation, but the agent uses the cached catalog, then dashboard will not show the error when the run was successful.