Skip to content

Commit 43864c5

Browse files
committed
Whitelist
1 parent 33a1006 commit 43864c5

File tree

1 file changed

+3
-2
lines changed
  • packages/core/src/amazonqFeatureDev/controllers/chat

1 file changed

+3
-2
lines changed

packages/core/src/amazonqFeatureDev/controllers/chat/controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ export class FeatureDevController {
10401040
err instanceof UserMessageNotFoundError ||
10411041
err instanceof SelectedFolderNotInWorkspaceFolderError ||
10421042
err instanceof PromptRefusalException ||
1043-
// err instanceof NoChangeRequiredException ||
1043+
err instanceof NoChangeRequiredException ||
10441044
err instanceof PrepareRepoFailedError ||
10451045
err instanceof UploadCodeError ||
10461046
err instanceof UploadURLExpired ||
@@ -1055,7 +1055,8 @@ export class FeatureDevController {
10551055
}
10561056

10571057
if (err.stack) {
1058-
const callStack = err.stack.substring(err.stack.indexOf(err.message) + err.message.length + 1)
1058+
const startStr = err.stack.substring('Error: '.length)
1059+
const callStack = startStr.substring(startStr.indexOf(err.message) + err.message.length + 1)
10591060
lines.push(`${prefix}${callStack}`)
10601061
}
10611062

0 commit comments

Comments
 (0)