sinatra/sinatra — pull request #895 by jeremyevans (2014-06-27 21:23:07+00:00)
Title: Make route params available during error handler (Fixes #860)

This is kind of ugly, but I couldn't see a better way. One
potential issue is that the splat and captures route params
will be overwritten by the error handler. There's no way to
change that without breaking backwards compatibility. We
could potentially offer the route splat/captures under
different param names, though.