mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
Try to make OpenAI errors more useful (#9639)
This commit is contained in:
parent
375c103bd3
commit
93a43e427e
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ import i18n from "../../../i18n/setup"
|
|||
*/
|
||||
export function handleOpenAIError(error: unknown, providerName: string): Error {
|
||||
if (error instanceof Error) {
|
||||
const msg = error.message || ""
|
||||
const msg = (error as any)?.error?.metadata?.raw || error.message || ""
|
||||
|
||||
// Log the original error details for debugging
|
||||
console.error(`[${providerName}] API error:`, {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue