diff --git a/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb b/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb index 7d38812f..4bcde9e4 100644 --- a/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb +++ b/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb @@ -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