mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Updates error reading
This commit is contained in:
committed by
Vignesh Subbiah
parent
f222e8341c
commit
aed51a2bc5
@@ -28,7 +28,7 @@ export class UnboundHandler implements ApiHandler {
|
|||||||
const data = await response.json()
|
const data = await response.json()
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(data.error)
|
throw new Error(data.error.message)
|
||||||
}
|
}
|
||||||
|
|
||||||
yield {
|
yield {
|
||||||
@@ -42,7 +42,7 @@ export class UnboundHandler implements ApiHandler {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof 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
|
throw error
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user