Sha256: f033c6f2b8c6ce688a0af9473062515479808f85fd242c4194b8ebedc2fc3edd

Contents?: true

Size: 385 Bytes

Versions: 18

Compression:

Stored size: 385 Bytes

Contents

require 'rack/showexceptions'

# Support rack/showexceptions during development
module Middleman::CoreExtensions
  class ShowExceptions < ::Middleman::Extension
    define_setting :show_exceptions, ENV['TEST'] ? false : true, 'Whether to catch and display exceptions'

    def ready
      app.use ::Rack::ShowExceptions if !app.build? && app.config[:show_exceptions]
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
middleman-core-with-external-sources-watch-fix-4.1.10 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-with-external-sources-watch-fix-4.1.0 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.2.0 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.14 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.13 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.12 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.11 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.10 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.9 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.8 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.7 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.6 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.5 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.3 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.2 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.1 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.0 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.1.0.rc.2 lib/middleman-core/core_extensions/show_exceptions.rb