Merge pull request #5971 from bheuvel/fix/master/5970

Raise Errno::ETIMEDOUT as "acceptable" Errors::ConnectionTimeout
This commit is contained in:
Mitchell Hashimoto 2015-07-15 10:54:30 -07:00
commit f540a301b6
1 changed files with 3 additions and 0 deletions

View File

@ -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