Raise Errno::ETIMEDOUT as "acceptable" Errors::ConnectionTimeout
This commit is contained in:
parent
2209d7621b
commit
f12f50c552
|
@ -132,6 +132,9 @@ module VagrantPlugins
|
||||||
raise Errors::SSLError, message: exception.message
|
raise Errors::SSLError, message: exception.message
|
||||||
when HTTPClient::TimeoutError
|
when HTTPClient::TimeoutError
|
||||||
raise Errors::ConnectionTimeout, message: exception.message
|
raise Errors::ConnectionTimeout, message: exception.message
|
||||||
|
when Errno::ETIMEDOUT
|
||||||
|
raise Errors::ConnectionTimeout
|
||||||
|
# This is raised if the connection timed out
|
||||||
when Errno::ECONNREFUSED
|
when Errno::ECONNREFUSED
|
||||||
# This is raised if we failed to connect the max amount of times
|
# This is raised if we failed to connect the max amount of times
|
||||||
raise Errors::ConnectionRefused
|
raise Errors::ConnectionRefused
|
||||||
|
|
Loading…
Reference in New Issue