Skip to content

Commit

Permalink
Add request method and path to the NotFound exception message. This i…
Browse files Browse the repository at this point in the history
…s useful for exception reporting tools.
  • Loading branch information
stefansundin committed Aug 31, 2019
1 parent 32d6833 commit 243dca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ def route_missing
if @app
forward
else
raise NotFound
raise NotFound, "#{request.request_method} #{request.path_info}"
end
end

Expand Down

0 comments on commit 243dca5

Please sign in to comment.