Skip to content

Commit 71be951

Browse files
committed
fix(featureDev): add handling for new limit mechanism
1 parent eb5c252 commit 71be951

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q Feature Dev: display limit reached error message"
4+
}

packages/core/src/amazonqFeatureDev/client/featureDev.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ export class FeatureDevClient {
171171
isAwsError(e) &&
172172
((e.code === 'ThrottlingException' &&
173173
e.message.includes('limit for number of iterations on a code generation')) ||
174+
e.message.includes(
175+
'Maximum com.amazon.aws.codewhisperer.runtime.StartTaskAssistCodeGeneration reached for this month.'
176+
) ||
174177
e.code === 'ServiceQuotaExceededException')
175178
) {
176179
throw new CodeIterationLimitError()

0 commit comments

Comments
 (0)