Skip to content

Commit

Permalink
This was released in Sinatra 2.0.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Apr 17, 2020
1 parent 5d8bd8e commit 699b3ab
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@
app_path = File.expand_path("../..", __FILE__)
Dir["#{app_path}/lib/**/*.rb"].sort.each { |f| require f }

# Expose the request path in the exception message for Sinatra::NotFound
# This makes it easier to scan the list of errors in Airbrake to see what paths causes 404 errors
# https://github.com/sinatra/sinatra/pull/1566
module Sinatra
class Base
def route_missing
if @app
forward
else
raise NotFound, "#{request.request_method} #{request.path_info}"
end
end
end
end

# uncomment to get production error pages in development
# set :environment, :production

Expand Down

0 comments on commit 699b3ab

Please sign in to comment.