Fix show_exceptions

This commit is contained in:
Thomas Reynolds 2015-05-04 10:50:35 -07:00
parent 9d3c30ee53
commit 4626193f97

View file

@ -1,5 +1,6 @@
require 'rack/showexceptions'
# Support rack/showexceptions during development
module Middleman::CoreExtensions
class ShowExceptions < ::Middleman::Extension
@ -8,7 +9,7 @@ module Middleman::CoreExtensions
return if app.config.defines_setting? :show_exceptions
app.config.define_setting :show_exceptions, !!ENV['TEST'], 'Whether to catch and display exceptions'
app.config.define_setting :show_exceptions, ENV['TEST'] ? false : true, 'Whether to catch and display exceptions'
end
def after_configuration