Raise Errno::ETIMEDOUT as "acceptable" Errors::ConnectionTimeout

This commit is contained in:
Bob 2015-07-15 19:41:10 +02:00
parent 2209d7621b
commit f12f50c552
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