From 5cfa2fd4df8af6a0cc08fb0c45539cab90e74f93 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 20 Jul 2024 22:43:28 +0200 Subject: [PATCH] Avoid showing any errors for background fetches Otherwise these could pile up or be distracting. However, errors should be shown on specific user actions that allow for modal dialogues. --- app/src/lib/baseBranch/baseBranchService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/lib/baseBranch/baseBranchService.ts b/app/src/lib/baseBranch/baseBranchService.ts index aa14f7e748..3cf5b342b1 100644 --- a/app/src/lib/baseBranch/baseBranchService.ts +++ b/app/src/lib/baseBranch/baseBranchService.ts @@ -45,7 +45,7 @@ export class BaseBranchService { return; } else if (err.code === Code.ProjectsGitAuth) { showError('Failed to authenticate', err); - } else { + } else if (action !== undefined) { showError('Failed to fetch', err); } console.error(err);