Fix show_exceptions
This commit is contained in:
parent
9d3c30ee53
commit
4626193f97
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue