add catch for mcp tool execution

This commit is contained in:
Aiden Cline
2025-10-28 10:22:53 -05:00
parent 74acd08ead
commit 643c22d21f

View File

@@ -582,7 +582,7 @@ export namespace SessionPrompt {
args, args,
}, },
) )
const result = await execute(args, opts).catch((err) => { const result = await execute(args, opts).catch((err: unknown) => {
log.error("Error executing tool", { error: err, tool: key }) log.error("Error executing tool", { error: err, tool: key })
return { return {
content: [ content: [