We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 687ae39 commit 1d8491cCopy full SHA for 1d8491c
packages/core/src/codewhisperer/commands/basicCommands.ts
@@ -735,7 +735,7 @@ export const generateFix = Commands.declare(
735
SecurityIssueProvider.instance.updateIssue(updatedIssue, targetFilePath)
736
SecurityIssueTreeViewProvider.instance.refresh()
737
} catch (err) {
738
- const error = isAwsError(err) ? err : new TypeError('Unexpected error')
+ const error = err instanceof Error ? err : new TypeError('Unexpected error')
739
await updateSecurityIssueWebview({
740
issue: targetIssue,
741
isGenerateFixLoading: false,
0 commit comments