diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-06-06 16:54:56 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-06-06 16:54:56 +0000 |
commit | 8d8880685ddaeeb968e1f1f0addf6cbf66eef67d (patch) | |
tree | 84a87466e156bb73d763aaa87615e452c0653542 /openbabel.rb | |
parent | f6a55a7121a61865d85ad7195371bd8fd784fb29 (diff) |
halts (partially) substituted by OpenTox errors
Diffstat (limited to 'openbabel.rb')
-rw-r--r-- | openbabel.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbabel.rb b/openbabel.rb index fedcb8a..463663e 100644 --- a/openbabel.rb +++ b/openbabel.rb @@ -143,6 +143,6 @@ post '/openbabel' do result_dataset.uri end response['Content-Type'] = 'text/uri-list' - halt 503,task.uri+"\n" if task.status == "Cancelled" + raise OpenTox::ServiceUnavailableError.newtask.uri+"\n" if task.status == "Cancelled" halt 202,task.uri.to_s+"\n" end |