mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Better error logs for parseToolCall exceptions (#9857)
This commit is contained in:
parent
65c750d1be
commit
5c501600cd
1 changed files with 5 additions and 2 deletions
|
|
@ -756,8 +756,11 @@ export class NativeToolCallParser {
|
|||
|
||||
return result
|
||||
} catch (error) {
|
||||
console.error(`Failed to parse tool call arguments:`, error)
|
||||
console.error(`Error details:`, error instanceof Error ? error.message : String(error))
|
||||
console.error(
|
||||
`Failed to parse tool call arguments: ${error instanceof Error ? error.message : String(error)}`,
|
||||
)
|
||||
|
||||
console.error(`Tool call: ${JSON.stringify(toolCall, null, 2)}`)
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue