about summary refs log tree commit diff
path: root/src/lib/strings/errors.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-23 18:05:30 +0100
committerGitHub <noreply@github.com>2024-05-23 18:05:30 +0100
commitb093e0b6739bef3fd178f5469f63871aed4d0aa2 (patch)
tree7d88c06e863417e5854dea1da87cd103e9c366f2 /src/lib/strings/errors.ts
parent5217876f241a991e55d789cd5faa8d8ab1890d1b (diff)
downloadvoidsky-b093e0b6739bef3fd178f5469f63871aed4d0aa2.tar.zst
[🐴] better error message for "Bad token scope" error (#4194)
* better error message for "Bad token scope" error

* log -> sign
Diffstat (limited to 'src/lib/strings/errors.ts')
-rw-r--r--src/lib/strings/errors.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/strings/errors.ts b/src/lib/strings/errors.ts
index 0c11a6706..899d8ebce 100644
--- a/src/lib/strings/errors.ts
+++ b/src/lib/strings/errors.ts
@@ -11,6 +11,9 @@ export function cleanError(str: any): string {
   if (str.includes('Upstream Failure')) {
     return 'The server appears to be experiencing issues. Please try again in a few moments.'
   }
+  if (str.includes('Bad token scope')) {
+    return 'This feature is not available while using an App Password. Please sign in with your main password.'
+  }
   if (str.startsWith('Error: ')) {
     return str.slice('Error: '.length)
   }