mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace|cdn] updating cdn to throw exceptions from storage namespace rather than cdn. This was done for historical reasons.
This commit is contained in:
parent
ffa1ec4f75
commit
688f15f88f
1 changed files with 4 additions and 4 deletions
|
@ -155,13 +155,13 @@ module Fog
|
|||
def request(params, parse_json = true, &block)
|
||||
super(params, parse_json, &block)
|
||||
rescue Excon::Errors::NotFound => error
|
||||
raise NotFound.slurp(error, region)
|
||||
raise Fog::Storage::Rackspace::NotFound.slurp(error, region)
|
||||
rescue Excon::Errors::BadRequest => error
|
||||
raise BadRequest.slurp error
|
||||
raise Fog::Storage::Rackspace::BadRequest.slurp error
|
||||
rescue Excon::Errors::InternalServerError => error
|
||||
raise InternalServerError.slurp error
|
||||
raise Fog::Storage::Rackspace::InternalServerError.slurp error
|
||||
rescue Excon::Errors::HTTPStatusError => error
|
||||
raise ServiceError.slurp error
|
||||
raise Fog::Storage::Rackspace::ServiceError.slurp error
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue