summaryrefslogtreecommitdiff
path: root/source/features/bugs-tab.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2021-12-19 15:38:41 +0700
committerGravatar GitHub <noreply@github.com> 2021-12-19 15:38:41 +0700
commit010fd94e9dbe7943c069bda3e1f9fd922dc32967 (patch)
tree0853223b16b92a9a37a9d6dcb42ec77942a13f1b /source/features/bugs-tab.tsx
parent1f7168077b39a9011648d283d53b953d879bd11f (diff)
downloadrefined-github-010fd94e9dbe7943c069bda3e1f9fd922dc32967.tar.gz
refined-github-010fd94e9dbe7943c069bda3e1f9fd922dc32967.tar.zst
refined-github-010fd94e9dbe7943c069bda3e1f9fd922dc32967.zip
Meta: Correctly display "token missing" errors in `bugs-tab` (#5224)
Diffstat (limited to 'source/features/bugs-tab.tsx')
-rw-r--r--source/features/bugs-tab.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/bugs-tab.tsx b/source/features/bugs-tab.tsx
index a72b9fa2..2e50d25b 100644
--- a/source/features/bugs-tab.tsx
+++ b/source/features/bugs-tab.tsx
@@ -131,7 +131,7 @@ async function addBugsTab(): Promise<void | false> {
bugsCounter.title = bugCount > 999 ? String(bugCount) : '';
} catch (error: unknown) {
bugsCounter.remove();
- features.log.error(import.meta.url, error);
+ throw error; // Likely an API call error that will be handled by the init
}
}