mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-09 19:52:44 +00:00
tweak: show actual retry error message instead of generic error msg (#11520)
This commit is contained in:
parent
a19ef17bcb
commit
da7c874808
2 changed files with 2 additions and 8 deletions
|
|
@ -99,7 +99,7 @@ describe("session.retry.retryable", () => {
|
|||
|
||||
test("handles json messages without code", () => {
|
||||
const error = wrap(JSON.stringify({ error: { message: "no_kv_space" } }))
|
||||
expect(SessionRetry.retryable(error)).toBe("Provider Server Error")
|
||||
expect(SessionRetry.retryable(error)).toBe(`{"error":{"message":"no_kv_space"}}`)
|
||||
})
|
||||
|
||||
test("does not throw on numeric error codes", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue