mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 02:39:49 +00:00
Merge pull request #2054 from balena-io/ignore-unauthorized-errors
Treat authorization errors as expected
This commit is contained in:
commit
2cc8d15c05
@ -148,6 +148,7 @@ const EXPECTED_ERROR_REGEXES = [
|
||||
/^BalenaDeviceNotFound/, // balena-sdk
|
||||
/^BalenaExpiredToken/, // balena-sdk
|
||||
/^BalenaInvalidDeviceType/, // balena-sdk
|
||||
/Request error: Unauthorized$/, // balena-sdk
|
||||
/^Missing \d+ required arg/, // oclif parser: RequiredArgsError
|
||||
/Missing required flag/, // oclif parser: RequiredFlagError
|
||||
/^Unexpected argument/, // oclif parser: UnexpectedArgsError
|
||||
|
@ -126,6 +126,7 @@ describe('handleError() function', () => {
|
||||
'must also be provided when using', // oclif
|
||||
'Expected an integer', // oclif
|
||||
'Flag --foo expects a value', // oclif
|
||||
'BalenaRequestError: Request error: Unauthorized', // sdk
|
||||
];
|
||||
|
||||
messagesToMatch.forEach((message) => {
|
||||
|
Loading…
Reference in New Issue
Block a user