tweak: show actual retry error message instead of generic error msg (#11520)
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user