Error block not working in Sinatra app

sinatra

Solution

You can add:

set :show_exceptions, false

To your application file.

In development environments `show_exceptions` is enabled by default.

Problem

I have the following Sinatra app and I am testing the `error` block but it doesnt seem to be working. Here's my sinatra app: ``` require 'rubygems' require 'sinatra' error do puts "----> Failed" $stdout.print "----> Failed" end get "/*" do raise "Error!!" end ``` I am using sinatra (1.3.3)

Original source