mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Updates error reading
This commit is contained in:
parent
f222e8341c
commit
aed51a2bc5
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ export class UnboundHandler implements ApiHandler {
|
|||
const data = await response.json()
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(data.error)
|
||||
throw new Error(data.error.message)
|
||||
}
|
||||
|
||||
yield {
|
||||
|
|
@ -42,7 +42,7 @@ export class UnboundHandler implements ApiHandler {
|
|||
}
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
throw new Error(`Unbound Gateway completion error: ${error.message}`)
|
||||
throw new Error(`Unbound Gateway completion error:\n ${error.message}`)
|
||||
}
|
||||
throw error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue