From cbac380c9696f60e23d8aab50b8fa021dcb4b091 Mon Sep 17 00:00:00 2001 From: surfdude29 <149612116+surfdude29@users.noreply.github.com> Date: Thu, 12 Feb 2026 01:55:54 +0000 Subject: [PATCH] Add profile error messages to cleanError (#9842) --- src/lib/strings/errors.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/strings/errors.ts b/src/lib/strings/errors.ts index a706597144..e68cadeda2 100644 --- a/src/lib/strings/errors.ts +++ b/src/lib/strings/errors.ts @@ -30,6 +30,18 @@ export function cleanError(str: any): string { if (str.includes('Bad token scope') || str.includes('Bad token method')) { return t`This feature is not available while using an App Password. Please sign in with your main password.` } + if (str.includes('Account has been suspended')) { + return t`Account has been suspended` + } + if (str.includes('Account is deactivated')) { + return t`Account is deactivated` + } + if (str.includes('Profile not found')) { + return t`Profile not found` + } + if (str.includes('Unable to resolve handle')) { + return t`Unable to resolve handle` + } if (str.startsWith('Error: ')) { return str.slice('Error: '.length) }