Bluesky app fork with some witchin' additions 💫

Add profile error messages to cleanError (#9842)

authored by

surfdude29 and committed by
GitHub
cbac380c 8c4820b1

+12
+12
src/lib/strings/errors.ts
··· 30 30 if (str.includes('Bad token scope') || str.includes('Bad token method')) { 31 31 return t`This feature is not available while using an App Password. Please sign in with your main password.` 32 32 } 33 + if (str.includes('Account has been suspended')) { 34 + return t`Account has been suspended` 35 + } 36 + if (str.includes('Account is deactivated')) { 37 + return t`Account is deactivated` 38 + } 39 + if (str.includes('Profile not found')) { 40 + return t`Profile not found` 41 + } 42 + if (str.includes('Unable to resolve handle')) { 43 + return t`Unable to resolve handle` 44 + } 33 45 if (str.startsWith('Error: ')) { 34 46 return str.slice('Error: '.length) 35 47 }