mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Improve cloud job error logging for RCC provider errors (#9924)
This commit is contained in:
parent
fba8508b10
commit
6f602fc88e
1 changed files with 5 additions and 3 deletions
|
|
@ -296,13 +296,15 @@ export class RooHandler extends BaseOpenAiCompatibleProvider<string> {
|
|||
}
|
||||
}
|
||||
} catch (error) {
|
||||
// Log streaming errors with context
|
||||
console.error("[RooHandler] Error during message streaming:", {
|
||||
const errorContext = {
|
||||
error: error instanceof Error ? error.message : String(error),
|
||||
stack: error instanceof Error ? error.stack : undefined,
|
||||
modelId: this.options.apiModelId,
|
||||
hasTaskId: Boolean(metadata?.taskId),
|
||||
})
|
||||
}
|
||||
|
||||
console.error(`[RooHandler] Error during message streaming: ${JSON.stringify(errorContext)}`)
|
||||
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue