summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb2
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