mozilla/browserid-bigtent — pull request #242 by ozten (2013-06-12 23:12:03+00:00)
Title: Provide required context and disable layout

If one throws a runtime error in a piece of middleware, the error handler setup may not have enough context to actually render.

We should provide safe defaults.

Steps to reproduce:

In bigtent add a peice of middleware before any of the others such as

app.use(function(req, res, next) { asdf; });

Before this patch - You'll get a `ReferenceError` about `lang` not being defined.

After this patch - A proper error screen.

CC @6a68 @seanmonstar