Skip to content

Commit 8b9ed49

Browse files
authored
runfix: Improve Backup canceling error logging (#15032)
1 parent c5d7f82 commit 8b9ed49

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/script/backup/BackupRepository.ts

+6-11
Original file line numberDiff line numberDiff line change
@@ -213,17 +213,12 @@ export class BackupRepository {
213213
throw new InvalidMetaDataError();
214214
}
215215

216-
try {
217-
await this.verifyMetadata(user, files);
218-
const fileDescriptors = Object.entries(files).map(([filename, content]) => ({
219-
content,
220-
filename,
221-
}));
222-
await this.importHistoryData(fileDescriptors, initCallback, progressCallback);
223-
} catch (error) {
224-
this.logger.error(`Could not import history: ${error.message}`, error);
225-
throw error;
226-
}
216+
await this.verifyMetadata(user, files);
217+
const fileDescriptors = Object.entries(files).map(([filename, content]) => ({
218+
content,
219+
filename,
220+
}));
221+
await this.importHistoryData(fileDescriptors, initCallback, progressCallback);
227222
}
228223

229224
private async importHistoryData(

0 commit comments

Comments
 (0)