diff --git a/packages/local-sync/src/local-sync-worker/sync-tasks/fetch-new-messages-in-folder.imap.es6 b/packages/local-sync/src/local-sync-worker/sync-tasks/fetch-new-messages-in-folder.imap.es6 index b1e40d26a..99724f3be 100644 --- a/packages/local-sync/src/local-sync-worker/sync-tasks/fetch-new-messages-in-folder.imap.es6 +++ b/packages/local-sync/src/local-sync-worker/sync-tasks/fetch-new-messages-in-folder.imap.es6 @@ -25,7 +25,7 @@ class FetchNewMessagesInFolderIMAP extends FetchMessagesInFolderIMAP { // operation // Can't use `super` in this scenario because babel can't compile it under // these conditions. User regular prototype instead - console.log(`🔚 📂 🆕$ {this._folder.name} has no fetchedmax - running regular fetch operation`) + console.log(`🔚 📂 🆕 ${this._folder.name} has no fetchedmax - running regular fetch operation`) yield FetchMessagesInFolderIMAP.prototype.runTask.call(this, db, imap) return } diff --git a/packages/local-sync/src/local-sync-worker/syncback-task-helpers.es6 b/packages/local-sync/src/local-sync-worker/syncback-task-helpers.es6 index 1c9bde346..6c9b778ef 100644 --- a/packages/local-sync/src/local-sync-worker/syncback-task-helpers.es6 +++ b/packages/local-sync/src/local-sync-worker/syncback-task-helpers.es6 @@ -105,6 +105,7 @@ export async function markInProgressTasksAsFailed({db} = {}) { for (const inProgress of inProgressTasks) { inProgress.status = 'FAILED'; + inProgress.error = new Error('Lingering task in progress was marked as failed') await inProgress.save(); } }