Created
April 26, 2015 18:51
-
-
Save rennex/201c652ec2853dfa3b16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "sinatra" | |
set :show_exceptions, :after_handler | |
error do | |
"Custom error page!" | |
end | |
get "/" do | |
"Hello! <a href='error'>Click to get an error</a>" | |
end | |
get "/error" do | |
raise Exception | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment