I have the following Sinatra application and I am testing the error block, but it does not seem to work.
Here is my sinatra application:
require 'rubygems' require 'sinatra' error do puts "----> Failed" $stdout.print "----> Failed" end get "/*" do raise "Error!!" end
I use Sinatra (1.3.3)
kapso source share