exceptions icon indicating copy to clipboard operation
exceptions copied to clipboard

README lacks usage instructions for Rack::Excpetions

Open gretel opened this issue 11 years ago • 2 comments

bit confusing in regards how other middleware is being configured. might help beginners:

use Rack::Exceptions, Exceptions::Backends::Logger.new

personally i'd like it this way:

use Rack::Exceptions, backend: :raiser

gretel avatar Sep 18 '14 01:09 gretel

Thanks for the suggestion! I'll definitely update the readme.

Regarding the backend: :raiser, I'm hesitant to add things like this because it adds complexity, and makes things less explicit. It's prettier, but is really just an unnecessary layer of abstraction.

ejholmes avatar Oct 09 '14 06:10 ejholmes

partly agree. but what is more important for me than a few lines of abstraction is conformity.. so i'd be happy to initialize ::Exceptions in a syntactically same way as all the others. regards

gretel avatar Oct 09 '14 10:10 gretel