diff --git a/packit_service/service/api/bodhi_updates.py b/packit_service/service/api/bodhi_updates.py index cb2933556..a4ea01bb0 100644 --- a/packit_service/service/api/bodhi_updates.py +++ b/packit_service/service/api/bodhi_updates.py @@ -82,7 +82,7 @@ def get(self, id): "submitted_time": optional_timestamp(update.submitted_time), "update_creation_time": optional_timestamp(update.update_creation_time), "run_ids": sorted(run.id for run in update.group_of_targets.runs), - "error": update.data.get("error") if update.data else None, + "error_message": update.data.get("error") if update.data else None, } update_dict.update(get_project_info_from_build(update)) diff --git a/packit_service/service/api/koji_builds.py b/packit_service/service/api/koji_builds.py index ff7f80d43..583f2f5ef 100644 --- a/packit_service/service/api/koji_builds.py +++ b/packit_service/service/api/koji_builds.py @@ -98,7 +98,7 @@ def get(self, id): "srpm_build_id": srpm_build.id if srpm_build else None, "run_ids": sorted(run.id for run in build.group_of_targets.runs), "build_submission_stdout": build.build_submission_stdout, - "error": build.data.get("error") if build.data else None, + "error_message": build.data.get("error") if build.data else None, } build_dict.update(get_project_info_from_build(build))