Skip to content

Commit

Permalink
Detect 410 errors more accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock committed May 6, 2024
1 parent 1180d4e commit e14dbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function build (opts = {}) {
if (JSON.stringify(exc).includes('resource_already_exists_exception')) {
console.warn(`Resource already exists: ${JSON.stringify(cmd.params)}`)
// setup task was already done because cleanup didn't catch it? do nothing
} else if (JSON.stringify(exc).includes('api_not_available_exception')) {
} else if (JSON.parse(exc.meta).statusCode === 410) {
// 410 api_not_available_exception should be ignored
console.warn(`API not available on serverless: ${cmd.method}`)
} else {
Expand Down

0 comments on commit e14dbe9

Please sign in to comment.