Permalink
Browse files

use error handling block

  • Loading branch information...
1 parent 90bc7ec commit 9fdc66f0e153adea9d708bf6d8c2495e1fd2fdb5 @ddollar ddollar committed Apr 1, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/taps/server.rb
View
@@ -12,6 +12,9 @@ class Server < Sinatra::Base
use Rack::Deflater unless ENV['NO_DEFLATE']
+ set :raise_errors => false
+ set :show_exceptions => false
+
error do
puts "ERROR: #{e.class}: #{e.message}"
e = request.env['sinatra.error']

0 comments on commit 9fdc66f

Please sign in to comment.