summaryrefslogtreecommitdiff
path: root/lib/rest-client-wrapper.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-05-03 12:48:06 +0200
committerChristoph Helma <helma@in-silico.ch>2012-05-03 12:48:06 +0200
commit8b430fdfb285cbbb24116909c7fe69a424b522d2 (patch)
tree95179e27fbb89e1d67fd8cffd5b8e92f833fe89c /lib/rest-client-wrapper.rb
parent1d49fe0da8e7d4dfc57fdbfffdc4e32db2ef0647 (diff)
remote task tests working
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r--lib/rest-client-wrapper.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb
index af1ba42..d5d9c82 100644
--- a/lib/rest-client-wrapper.rb
+++ b/lib/rest-client-wrapper.rb
@@ -44,9 +44,7 @@ module OpenTox
if [301, 302, 307].include? response.code and request.method == :get
response.follow_redirection(request, result)
else
- #TODO Reactivate for external services
- #raise OpenTox::RestCallError.new response.to_s, request, uri unless response.code < 400 or URI.task? uri
- rest_call_error response.to_s, request, uri unless response.code < 400 or URI.task? uri
+ raise OpenTox::RestCallError.new response.to_s, request, uri unless response.code < 400 or URI.task? uri
response
end
end