diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-23 18:05:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 18:05:30 +0100 |
commit | b093e0b6739bef3fd178f5469f63871aed4d0aa2 (patch) | |
tree | 7d88c06e863417e5854dea1da87cd103e9c366f2 /src | |
parent | 5217876f241a991e55d789cd5faa8d8ab1890d1b (diff) | |
download | voidsky-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')
-rw-r--r-- | src/lib/strings/errors.ts | 3 |
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) } |