diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-20 16:04:47 +0200 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-20 16:04:47 +0200 |
commit | 7b68e9c00542c383871fc78ec3bb2b0297bba4cd (patch) | |
tree | 66c333bb254226917f7c7e0a5017dc9c65ade61b /lib | |
parent | f051bd1f965a7d487e630c5df440998b8e9acdd3 (diff) |
adding error msg if redirect task fails
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rest_client_wrapper.rb | 2 |
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 |