Fix 'rack.errors' not being set for Rack apps #223

merged 1 commit into from Feb 17, 2013


None yet
2 participants

grantovich commented Nov 8, 2012

I ran into an issue recently where Sinatra's error handler expects env['rack.errors'] to contain something that responds to puts, but when running under WebMock, it doesn't. This causes the error handler itself to throw an error, making debugging rather difficult.

The attached code fixes this issue and includes a test case for it.

bblimke added a commit that referenced this pull request Feb 17, 2013

Merge pull request #223 from grantovich/acg-fix-rack-errors
Fix 'rack.errors' not being set for Rack apps

@bblimke bblimke merged commit 0d7abd3 into bblimke:master Feb 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment