example/controller.rb in sinatra-errorcodes-0.1.1 vs example/controller.rb in sinatra-errorcodes-0.1.2

- old
+ new

@@ -6,6 +6,14 @@ end get '/error' do raise HTTPError::InternalServerError end + + get '/custom' do + raise HTTPError::InternalServerError, "Custom error message" + end + + get '/general_error' do + undefined_method + end end