diff --git a/app/server/modules/backups/__tests__/backups.execution.test.ts b/app/server/modules/backups/__tests__/backups.execution.test.ts index 6d273d7e..28980273 100644 --- a/app/server/modules/backups/__tests__/backups.execution.test.ts +++ b/app/server/modules/backups/__tests__/backups.execution.test.ts @@ -235,7 +235,7 @@ describe("stop backup", () => { // assert const updatedSchedule = await backupsService.getScheduleById(schedule.id); expect(updatedSchedule.lastBackupStatus).toBe("warning"); - expect(updatedSchedule.lastBackupError).toBe("Backup was stopped by user"); + expect(updatedSchedule.lastBackupError).toBe("Backup was stopped by the user"); }); test("should throw ConflictError when trying to stop non-running backup", async () => { diff --git a/app/server/modules/backups/backups.execution.ts b/app/server/modules/backups/backups.execution.ts index d6c68518..6de2b227 100644 --- a/app/server/modules/backups/backups.execution.ts +++ b/app/server/modules/backups/backups.execution.ts @@ -324,7 +324,7 @@ const stopBackup = async (scheduleId: number) => { } finally { await scheduleQueries.updateStatus(scheduleId, organizationId, { lastBackupStatus: "warning", - lastBackupError: "Backup was stopped by user", + lastBackupError: "Backup was stopped by the user", }); } }; diff --git a/packages/core/src/restic/commands/backup.ts b/packages/core/src/restic/commands/backup.ts index ed414fcc..1c4f3eeb 100644 --- a/packages/core/src/restic/commands/backup.ts +++ b/packages/core/src/restic/commands/backup.ts @@ -170,7 +170,7 @@ export const backup = async ( if (options.signal?.aborted) { logger.warn("Restic backup was aborted by signal."); - return { result: null, exitCode: res.exitCode, warningDetails: null }; + return { result: null, exitCode: res.exitCode, warningDetails: "Backup was stopped by the user" }; } if (res.exitCode === 3) {