Skip to content

Commit 1d8491c

Browse files
committed
fix test
1 parent 687ae39 commit 1d8491c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/codewhisperer/commands/basicCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ export const generateFix = Commands.declare(
735735
SecurityIssueProvider.instance.updateIssue(updatedIssue, targetFilePath)
736736
SecurityIssueTreeViewProvider.instance.refresh()
737737
} catch (err) {
738-
const error = isAwsError(err) ? err : new TypeError('Unexpected error')
738+
const error = err instanceof Error ? err : new TypeError('Unexpected error')
739739
await updateSecurityIssueWebview({
740740
issue: targetIssue,
741741
isGenerateFixLoading: false,

0 commit comments

Comments
 (0)