Skip to content

Commit 5ae059e

Browse files
authored
Fix issue where error response body wasn't being set when readtimeout is specified (#1044)
1 parent b64beb7 commit 5ae059e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/clientlayers/MessageRequest.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ function messagelayer(handler)
3535
handler(req; verbose, response_stream, kw...)
3636
end
3737
catch e
38+
if e isa CapturedException
39+
e = e.ex
40+
end
3841
if e isa StatusError
3942
resp = e.response
4043
end

0 commit comments

Comments
 (0)