Skip to content

Commit 2b960e5

Browse files
Merge master into feature/emr
2 parents 04e98b9 + 67f053c commit 2b960e5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/core/src/amazonqGumby/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AlternateDependencyVersionsNotFoundError extends Error {
4343
}
4444

4545
export class JobStoppedError extends Error {
46-
constructor(readonly requestId: string) {
46+
constructor() {
4747
super('Job was rejected, stopped, or failed')
4848
}
4949
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,7 @@ export async function pollTransformationJob(jobId: string, validStates: string[]
686686
* is called, we break above on validStatesForCheckingDownloadUrl and check final status in finalizeTransformationJob
687687
*/
688688
if (CodeWhispererConstants.failureStates.includes(status)) {
689-
throw new JobStoppedError(
690-
response.transformationJob.reason ?? 'no failure reason in GetTransformation response'
691-
)
689+
throw new JobStoppedError()
692690
}
693691
await sleep(CodeWhispererConstants.transformationJobPollingIntervalSeconds * 1000)
694692
} catch (e: any) {

0 commit comments

Comments
 (0)