diff options
author | mr <mr@mrautenberg.de> | 2011-08-04 18:03:03 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-08-04 18:03:03 +0200 |
commit | 34a0e4fb8e72d61604c250e2fdfd64b968311fb9 (patch) | |
tree | 11ca2acaf8cae69225a29bc80ff8f1b5f8250f6e /application.rb | |
parent | a05a704a18772c96bc805bf827102684afe25286 (diff) | |
parent | 9cb01ae4917ad1867a271ab2555fe790fb8de99d (diff) |
Merge branch 'release/v2.1.0'
Diffstat (limited to 'application.rb')
-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 |