diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-06-17 13:51:36 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-06-17 13:51:36 +0200 |
commit | d384f80e5fd64dcb8aae803b247d07ca7f33b74e (patch) | |
tree | f28fd357d308f198a23032fb23eb143d16b74182 | |
parent | b3e609c283e14d3761bdf88867ac54a7b66f42d1 (diff) |
make task error msg more verbose
-rw-r--r-- | lib/rest_client_wrapper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rest_client_wrapper.rb b/lib/rest_client_wrapper.rb index 53887a2..6d25bb3 100644 --- a/lib/rest_client_wrapper.rb +++ b/lib/rest_client_wrapper.rb @@ -137,7 +137,8 @@ module OpenTox if task.errorReport received_error task.errorReport, task.http_code, nil, {:rest_uri => task.uri, :rest_code => task.http_code} else - raise "task status: '"+task.status.to_s+"' but errorReport nil" + raise "status of task '"+task.uri.to_s+"' is no longer running (hasStatus is '"+task.status+ + "'), but it is neither completed nor has an errorReport" end end |