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 90dfc71 commit 7d07c53Copy full SHA for 7d07c53
packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts
@@ -356,6 +356,11 @@ export class Messenger {
356
throw new Error('Tool not found')
357
}
358
} catch (error: any) {
359
+ if (error instanceof SyntaxError) {
360
+ // set toolUse.input to the raw value
361
+ toolUse.input = toolUseInput
362
+ error.message = `Tool input has invalid JSON format: ${error.message}`
363
+ }
364
getLogger().error(
365
`toolUseId: ${toolUse.toolUseId}, toolUseName: ${toolUse.name}, error: ${error}`
366
)
0 commit comments