mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-07 00:05:02 -04:00
fixed error being assigned nil
This commit is contained in:
parent
97a727b286
commit
5258f8230b
@ -438,12 +438,12 @@ module HTTPX
|
|||||||
return unless @timeout <= 0
|
return unless @timeout <= 0
|
||||||
end
|
end
|
||||||
|
|
||||||
error = if @total_timeout && @total_timeout.fires_in.negative?
|
if @total_timeout && @total_timeout.fires_in.negative?
|
||||||
ex = TotalTimeoutError.new(@total_timeout.interval, "Timed out after #{@total_timeout.interval} seconds")
|
ex = TotalTimeoutError.new(@total_timeout.interval, "Timed out after #{@total_timeout.interval} seconds")
|
||||||
ex.set_backtrace(error.backtrace)
|
ex.set_backtrace(error.backtrace)
|
||||||
ex
|
error = ex
|
||||||
elsif connecting?
|
elsif connecting?
|
||||||
error.to_connection_error
|
error = error.to_connection_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user