summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-06-06 16:54:56 +0000
committerChristoph Helma <helma@in-silico.ch>2011-06-06 16:54:56 +0000
commit8d8880685ddaeeb968e1f1f0addf6cbf66eef67d (patch)
tree84a87466e156bb73d763aaa87615e452c0653542 /lazar.rb
parentf6a55a7121a61865d85ad7195371bd8fd784fb29 (diff)
halts (partially) substituted by OpenTox errors
Diffstat (limited to 'lazar.rb')
-rw-r--r--lazar.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lazar.rb b/lazar.rb
index 00f3216..4441726 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -191,7 +191,7 @@ post '/lazar/?' do
model_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
end