mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Toast on main process errors
This commit is contained in:
@@ -443,12 +443,15 @@ function deleteOrphanedAttachments({
|
||||
await sql.sqlRead('finishGetKnownMessageAttachments', cursor);
|
||||
}
|
||||
}
|
||||
|
||||
log.info(
|
||||
`cleanupOrphanedAttachments: ${totalAttachmentsFound} message ` +
|
||||
`attachments; ${orphanedAttachments.size} remain`
|
||||
`cleanupOrphanedAttachments: ${totalAttachmentsFound} attachments and \
|
||||
${totalDownloadsFound} downloads found on disk`
|
||||
);
|
||||
|
||||
if (orphanedAttachments.size > 0) {
|
||||
log.error(`${orphanedAttachments.size} orphaned attachment(s) found`);
|
||||
}
|
||||
|
||||
if (totalMissing > 0) {
|
||||
log.warn(
|
||||
`cleanupOrphanedAttachments: ${totalMissing} message attachments were not found on disk`
|
||||
@@ -460,10 +463,10 @@ function deleteOrphanedAttachments({
|
||||
attachments: Array.from(orphanedAttachments),
|
||||
});
|
||||
|
||||
log.info(
|
||||
`cleanupOrphanedAttachments: found ${totalDownloadsFound} downloads ` +
|
||||
`${orphanedDownloads.size} remain`
|
||||
);
|
||||
if (orphanedDownloads.size > 0) {
|
||||
log.error(`${orphanedDownloads.size} orphaned download(s) found`);
|
||||
}
|
||||
|
||||
await deleteAllDownloads({
|
||||
userDataPath,
|
||||
downloads: Array.from(orphanedDownloads),
|
||||
|
||||
Reference in New Issue
Block a user