mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
add catch for mcp tool execution
This commit is contained in:
parent
74acd08ead
commit
643c22d21f
1 changed files with 1 additions and 1 deletions
|
|
@ -582,7 +582,7 @@ export namespace SessionPrompt {
|
|||
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 })
|
||||
return {
|
||||
content: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue