sinatra/sinatra-contrib — Issue #37: Sinatra::Namespace does not bubble errors
Author: RickMoynihan
Created: 2012-03-06 16:57:48+00:00
State: open

In this example:

```ruby

class TestApp < Sinatra::Base
register Sinatra::Namespace

error 500 do
'root error page'
end

get '/bar' do
halt 500
end

namespace '/foo' do
get '/bar' do
halt 500
end
end

run! if app_file == $0
end
```

Accessing `/bar` renders `root error page`, yet accessing `/foo/bar` does not.

It would be nice if `halt`s would bubble up the namespaces until they were handled by an appropriate error block.