Merge pull request #18711 from desktop/log-errors-in-pruner

Log errors from async callback in branch pruner
This commit is contained in:
Markus Olsson 2024-05-30 10:44:35 +02:00 committed by GitHub
commit bb89c960c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,7 +241,9 @@ export class BranchPruner {
log.info(`[BranchPruner] Branch '${branchName}' marked for deletion`)
}
}
this.onPruneCompleted(this.repository)
this.onPruneCompleted(this.repository).catch(e => {
log.error(`[BranchPruner] Error calling onPruneCompleted`, e)
})
}
}