summaryrefslogtreecommitdiff
path: root/lib/rest_client_wrapper.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-04-20 16:04:47 +0200
committerMartin Gütlein <martin.guetlein@gmail.com>2010-04-20 16:04:47 +0200
commit7b68e9c00542c383871fc78ec3bb2b0297bba4cd (patch)
tree66c333bb254226917f7c7e0a5017dc9c65ade61b /lib/rest_client_wrapper.rb
parentf051bd1f965a7d487e630c5df440998b8e9acdd3 (diff)
adding error msg if redirect task fails
Diffstat (limited to 'lib/rest_client_wrapper.rb')
-rw-r--r--lib/rest_client_wrapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rest_client_wrapper.rb b/lib/rest_client_wrapper.rb
index 53cdf06..725ac55 100644
--- a/lib/rest_client_wrapper.rb
+++ b/lib/rest_client_wrapper.rb
@@ -44,7 +44,7 @@ module OpenTox
redirect += line.chomp
end
end
- raise "TASK ERROR" if $?!=0
+ raise redirect!=nil && redirect.size>0 ? redirect : "TASK ERROR" if $?!=0
sleep 0.3
end
uri = redirect