The project is in a healthy, maintained state
Rack middleware to log request errors and respond with standard message
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8
~> 5.0, < 5.11
~> 0.2
~> 2.0
~> 11.0
~> 0.14

Runtime

>= 0
 Project Readme

Rack::ErrorHandler

Gem Version CI Coverage Status Code Climate

Rack middleware to log request errors and respond with standard message

Installation

Add this line to your application's Gemfile:

gem 'rack-error_handler'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-error_handler

Usage

logger = Logger.new STDOUT

use Rack::ErrorHandler, logger: Logger.new(STDOUT)

use Rack::ErrorHandler, logger: logger,
                        error_message: '<html><body><h1>Server Error</h1></body></html>'

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gabynaiman/rack-error_handler.

License

The gem is available as open source under the terms of the MIT License.