fix(backups): report error in the error field of the job

This commit is contained in:
Houkime 2024-03-18 17:00:55 +00:00
parent efc6b47cfe
commit b39558ea1f
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class Backups:
Backups._prune_auto_snaps(service)
service.post_restore()
except Exception as error:
Jobs.update(job, status=JobStatus.ERROR, status_text=str(error))
Jobs.update(job, status=JobStatus.ERROR, error=str(error))
raise error
Jobs.update(job, status=JobStatus.FINISHED)