Merge pull request #5971 from bheuvel/fix/master/5970
Raise Errno::ETIMEDOUT as "acceptable" Errors::ConnectionTimeout
This commit is contained in:
commit
f540a301b6
|
@ -132,6 +132,9 @@ module VagrantPlugins
|
|||
raise Errors::SSLError, message: exception.message
|
||||
when HTTPClient::TimeoutError
|
||||
raise Errors::ConnectionTimeout, message: exception.message
|
||||
when Errno::ETIMEDOUT
|
||||
raise Errors::ConnectionTimeout
|
||||
# This is raised if the connection timed out
|
||||
when Errno::ECONNREFUSED
|
||||
# This is raised if we failed to connect the max amount of times
|
||||
raise Errors::ConnectionRefused
|
||||
|
|
Loading…
Reference in New Issue