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 | 9cb01ae4917ad1867a271ab2555fe790fb8de99d (patch) | |
tree | 11ca2acaf8cae69225a29bc80ff8f1b5f8250f6e | |
parent | 63b40d68bdc69426eac9d9f504714ff50667865d (diff) |
halts (partially) substituted by OpenTox errors
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index eba06a4..5719542 100644 --- a/application.rb +++ b/application.rb @@ -87,7 +87,7 @@ get %r{/(.+)} do |inchi| # catches all remaining get requests uri = File.join @@cactus_uri,@inchi,"names" RestClient.get(uri).body else - halt 400, "Unsupported MIME type '#{request.env['HTTP_ACCEPT']}'" + raise OpenTox::BadRequestError.new "Unsupported MIME type '#{request.env['HTTP_ACCEPT']}'" end end |