diff --git a/backend/copr_backend/background_worker_build.py b/backend/copr_backend/background_worker_build.py index 6c488a165..1438b99fd 100644 --- a/backend/copr_backend/background_worker_build.py +++ b/backend/copr_backend/background_worker_build.py @@ -678,9 +678,9 @@ def _get_build_details(self, job): } self.log.info("build details: %s", build_details) except Exception as e: - raise BackendError( - "Error while collecting built packages for {}: {}" - .format(job.task_id, str(e))) + self.log.exception("Can't collect build results for %s", + job.task_id) + raise BackendError("Can not deduct build details") from e return build_details