Skip to content

Commit 555d476

Browse files
committed
Merge pull request sinatra#1061 from BenMorganIO/rack-2-support
Rack 2 Support
2 parents 7610d5f + 5993492 commit 555d476

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/sinatra/show_exceptions.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
require 'rack/showexceptions'
1+
begin
2+
require 'rack/show_exceptions'
3+
rescue LoadError
4+
require 'rack/showexceptions'
5+
end
26

37
module Sinatra
48
# Sinatra::ShowExceptions catches all exceptions raised from the app it

0 commit comments

Comments
 (0)