1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Merge pull request #1566 from stefansundin/NotFound-message

Add message to NotFound exception
This commit is contained in:
Jordan Owens 2019-10-26 17:12:45 -04:00 committed by GitHub
commit f515356e47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1050,7 +1050,7 @@ module Sinatra
if @app
forward
else
raise NotFound
raise NotFound, "#{request.request_method} #{request.path_info}"
end
end