diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-02-15 12:23:52 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-02-15 12:23:52 +0100 |
commit | dee8892491dcda0bfa68c413ee0fbbc0ddd33f12 (patch) | |
tree | c85da4fdda99e9a434bf694e8ec4b31cd5c29134 /lib/opentox.rb | |
parent | 83f4b12aaacfd27e7019517ac7089ddd912ba259 (diff) |
error messages in tasks fixed
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index d1e09f6..221a8dd 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -122,8 +122,9 @@ module OpenTox t = OpenTox::Task.new uri t.wait unless t.completed? - method = RestClientWrapper.known_errors.select{|error| error[:code] == t.hasStatus.to_i}.first[:method] - Object.send(method,t.message,t.uri) + method = RestClientWrapper.known_errors.select{|error| error[:code] == t.code}.first[:method] + t.get + Object.send(method,t.error_report[RDF::OT.message],t.uri) end uri = t.resultURI end |