Commit eca3507
committed
fix: use specific 'token provided' match instead of broad 'token' in GitLab CLI error normalization
The previous check used lower.includes('token') which would match any error
containing the word 'token' (e.g. 'unexpected token' in JSON parse errors),
misclassifying them as authentication failures. Changed to 'token provided'
to match actual glab authentication errors like 'no token provided' and
'invalid token provided', consistent with how the GitHub CLI error handler
uses the specific 'no oauth token' phrase.1 parent 5e6fd83 commit eca3507
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments