1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #3864 from daviddavis/temp/20160322171737

[docker] Fixing bad namespace on errors
This commit is contained in:
Paulo Henrique Lopes Ribeiro 2016-03-22 14:51:53 -07:00
commit 5e4bde2733

View file

@ -13,9 +13,9 @@ module Fog
result result
end end
rescue Docker::Error::NotFoundError => e rescue Docker::Error::NotFoundError => e
raise Fog::Errors::Error::NotFound.new(e.message) raise Fog::Errors::NotFound.new(e.message)
rescue Docker::Error::TimeoutError => e rescue Docker::Error::TimeoutError => e
raise Fog::Errors::Error::TimeoutError.new(e.message) raise Fog::Errors::TimeoutError.new(e.message)
rescue Docker::Error::UnauthorizedError => e rescue Docker::Error::UnauthorizedError => e
raise Fog::Errors::Fogdocker::AuthenticationError.new(e.message) raise Fog::Errors::Fogdocker::AuthenticationError.new(e.message)
rescue Docker::Error::DockerError => e rescue Docker::Error::DockerError => e