update bad token error message (#8954)
This commit is contained in:
@@ -42,7 +42,7 @@ export function useCleanError() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (raw.includes('Bad token scope')) {
|
if (raw.includes('Bad token scope') || raw.includes('Bad token method')) {
|
||||||
return {
|
return {
|
||||||
raw,
|
raw,
|
||||||
clean: _(
|
clean: _(
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export function cleanError(str: any): string {
|
|||||||
) {
|
) {
|
||||||
return t`The server appears to be experiencing issues. Please try again in a few moments.`
|
return t`The server appears to be experiencing issues. Please try again in a few moments.`
|
||||||
}
|
}
|
||||||
if (str.includes('Bad token scope')) {
|
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.`
|
return t`This feature is not available while using an App Password. Please sign in with your main password.`
|
||||||
}
|
}
|
||||||
if (str.startsWith('Error: ')) {
|
if (str.startsWith('Error: ')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user