From 4626193f97ad3263846f9cb07f77b918f8a4c489 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Mon, 4 May 2015 10:50:35 -0700 Subject: [PATCH] Fix show_exceptions --- .../lib/middleman-core/core_extensions/show_exceptions.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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