mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 10:44:21 +01:00
add catch for mcp tool execution
This commit is contained in:
@@ -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: [
|
||||||
|
|||||||
Reference in New Issue
Block a user