From 9cb01ae4917ad1867a271ab2555fe790fb8de99d Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 6 Jun 2011 16:54:56 +0000 Subject: halts (partially) substituted by OpenTox errors --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3