Skip to content

Instantly share code, notes, and snippets.

@croaky
Forked from bmizerany/.gems
Created September 9, 2009 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save croaky/183352 to your computer and use it in GitHub Desktop.
Save croaky/183352 to your computer and use it in GitHub Desktop.
rack_hoptoad
require 'rack_hoptoad'
use Rack::HoptoadNotifier, "123abc"
run lambda {|env|
fail "Fail!"
}
require 'rack_hoptoad'
require 'example'
use Rack::HoptoadNotifier, "1234"
run Sinatra::Application
require 'sinatra'
configure :production do
enable :raise_errors
end
get '/boom' do
fail "Fail from Sinatra!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment