diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-05-12 18:07:49 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-05-12 18:07:49 +0200 |
commit | a266f6e2ec0e083d9c42be4ec6f6e35c5bf2d137 (patch) | |
tree | cbf2629477b36b89065fd1a943eaabc7320a8aff /lib/rest_client_wrapper.rb | |
parent | cec1def5fb3e9c726dde0a69328540806b214fbf (diff) |
make error handling easier
Diffstat (limited to 'lib/rest_client_wrapper.rb')
-rw-r--r-- | lib/rest_client_wrapper.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rest_client_wrapper.rb b/lib/rest_client_wrapper.rb index 187f3a9..8e1beb4 100644 --- a/lib/rest_client_wrapper.rb +++ b/lib/rest_client_wrapper.rb @@ -90,8 +90,6 @@ module OpenTox raise "illegal status code: '"+res.code.to_s+"'" unless res.code==200 return res - rescue RestClient::RequestFailed => ex - do_halt ex.http_code,ex.http_body,uri,headers,payload rescue RestClient::RequestTimeout => ex do_halt 408,ex.message,uri,headers,payload rescue => ex |