1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/fogdocker/errors.rb
Daniel Lobato bb266ea3ff Handle Docker authentication errors
Fog was not handling at all the error returned by docker-api. This
commit fixes that and raises an AuthenticationError that can be caught
by Fog clients.

There was a bug in the errors code for container_action that this PR
fixes too.
2014-11-14 02:55:08 +01:00

9 lines
194 B
Ruby

module Fog
module Errors
module Fogdocker
class ServiceError < Fog::Errors::Error; end
class AuthenticationError < Fog::Errors::Fogdocker::ServiceError; end
end
end
end