Skip to content

Commit 914fbf8

Browse files
author
David Hasani
committed
nit: text change
1 parent 5657b2e commit 914fbf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/codewhisperer/service/transformByQ/transformApiHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export async function uploadArtifactToS3(
133133
}
134134
}
135135
if (!response || response.status !== 200) {
136-
const uploadFailedError = `Upload failed after up to 2 retries with status code = ${response?.status ?? 'unavailable'}`
136+
const uploadFailedError = `Upload failed after up to 3 attempts with status code = ${response?.status ?? 'unavailable'}`
137137
getLogger().error(`CodeTransformation: ${uploadFailedError}`)
138138
throw new Error(uploadFailedError)
139139
}

packages/core/src/test/codewhisperer/commands/transformByQ.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ describe('transformByQ', function () {
531531
error = e as Error
532532
}
533533

534-
sinon.assert.match(error?.message.includes('Upload failed after up to 3 retries'), true)
534+
sinon.assert.match(error?.message.includes('Upload failed after up to 3 attempts'), true)
535535
sinon.assert.calledThrice(fetchStub)
536536
})
537537

0 commit comments

Comments
 (0)