Skip to content

Commit

Permalink
feat(backup): More backup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Dec 15, 2023
1 parent 859e3b2 commit 6115334
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/domain/backup/services/manageBackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,16 @@ const initializeBackup = async (
try {
localBackupConfig = await fixLocalBackupConfigIfNecessary(client)
} catch (e) {
log.debug('Error trying to fix local backup config', e)

if (e instanceof Error) {
if (
e.message === 'Remote backup folder has been trashed.' ||
e.message === 'Remote backup folder has been deleted.'
) {
log.debug(
'Reseting local backup config because folder has been trashed or deleted'
)
return await initializeLocalBackupConfig(client)
}
}
Expand Down

0 comments on commit 6115334

Please sign in to comment.