Skip to content

Commit

Permalink
Fix unhandled promise rejection during git operations (eclipse-theia#…
Browse files Browse the repository at this point in the history
  • Loading branch information
erezmus committed Sep 21, 2023
1 parent d2e55ba commit 8020920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/git/src/node/git-repository-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export class GitRepositoryManager {

run<T>(repository: Repository, op: () => Promise<T>): Promise<T> {
const result = op();
result.then(() => this.sync(repository));
result.then(() => this.sync(repository).catch(e => console.log(e)));

return result;
}

Expand Down

0 comments on commit 8020920

Please sign in to comment.