Sha256: 5d4628957bdcd61c1ff1e2fb73d2e317239c5b17a1e4c09cbb47d7f3947c2207
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require 'rack/showexceptions' # Support rack/showexceptions during development module Middleman::CoreExtensions class ShowExceptions < ::Middleman::Extension def initialize(app, options_hash={}, &block) super return if app.config.defines_setting? :show_exceptions app.config.define_setting :show_exceptions, ENV['TEST'] ? false : true, 'Whether to catch and display exceptions' end def after_configuration app.use ::Rack::ShowExceptions if !app.build? && app.config[:show_exceptions] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-core-4.0.0.beta.2 | lib/middleman-core/core_extensions/show_exceptions.rb |