From 5993492eccfda74c3cc60760073a4b037662f5d3 Mon Sep 17 00:00:00 2001 From: "Ben A. Morgan" Date: Thu, 31 Dec 2015 14:38:36 -0500 Subject: [PATCH] require show_exceptions as default --- lib/sinatra/show_exceptions.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/sinatra/show_exceptions.rb b/lib/sinatra/show_exceptions.rb index 6a39c5be..2e3069f2 100644 --- a/lib/sinatra/show_exceptions.rb +++ b/lib/sinatra/show_exceptions.rb @@ -1,4 +1,8 @@ -require 'rack/showexceptions' +begin + require 'rack/show_exceptions' +rescue LoadError + require 'rack/showexceptions' +end module Sinatra # Sinatra::ShowExceptions catches all exceptions raised from the app it