summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-05-12 18:07:49 +0200
committermguetlein <martin.guetlein@gmail.com>2010-05-12 18:07:49 +0200
commita266f6e2ec0e083d9c42be4ec6f6e35c5bf2d137 (patch)
treecbf2629477b36b89065fd1a943eaabc7320a8aff /lib
parentcec1def5fb3e9c726dde0a69328540806b214fbf (diff)
make error handling easier
Diffstat (limited to 'lib')
-rw-r--r--lib/rest_client_wrapper.rb2
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