From b093e0b6739bef3fd178f5469f63871aed4d0aa2 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 23 May 2024 18:05:30 +0100 Subject: [🐴] better error message for "Bad token scope" error (#4194) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * better error message for "Bad token scope" error * log -> sign --- src/lib/strings/errors.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/strings') 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) } -- cgit 1.4.1