Skip to content

Commit

Permalink
Merge pull request #1566 from stefansundin/NotFound-message
Browse files Browse the repository at this point in the history
Add message to NotFound exception
  • Loading branch information
jkowens committed Oct 26, 2019
2 parents f7075b2 + 243dca5 commit f515356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
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 f515356

Please sign in to comment.