File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function useCleanError() {
42
42
}
43
43
}
44
44
45
- if ( raw . includes ( 'Bad token scope' ) ) {
45
+ if ( raw . includes ( 'Bad token scope' ) || raw . includes ( 'Bad token method' ) ) {
46
46
return {
47
47
raw,
48
48
clean : _ (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function cleanError(str: any): string {
17
17
) {
18
18
return t `The server appears to be experiencing issues. Please try again in a few moments.`
19
19
}
20
- if ( str . includes ( 'Bad token scope' ) ) {
20
+ if ( str . includes ( 'Bad token scope' ) || str . includes ( 'Bad token method' ) ) {
21
21
return t `This feature is not available while using an App Password. Please sign in with your main password.`
22
22
}
23
23
if ( str . startsWith ( 'Error: ' ) ) {
You can’t perform that action at this time.
0 commit comments