mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 01:33:10 +09:00
bug #1354: Handle exception when trying to connect to the marketplace
This commit is contained in:
1 parent
ba144487ed
commit
d5036967d4
1 file changed
+6
@@ -113,6 +113,12 @@ module CloudClient
|
||||
str << "Server: #{url.host}:#{url.port}"
|
||||
|
||||
return CloudClient::Error.new(str,"504")
|
||||
rescue SocketError => e
|
||||
str = "Error timeout while connected to server (#{e.to_s}).\n"
|
||||
|
||||
return CloudClient::Error.new(str,"503")
|
||||
rescue
|
||||
return CloudClient::Error.new($!.to_s,"503")
|
||||
end
|
||||
|
||||
if res.is_a?(Net::HTTPSuccess)
|
||||
|
||||
Reference in new issue
Block a user