mozilla/openbadges-badgekit — pull request #309 by andrewhayward (2014-04-03 10:05:54+00:00)
Title: Error handling

Error handling is currently patchy at best. This adds something slightly more presentable.

It doesn't fix all the locations where we are `res.send`ing errors, so at some point we'll have to convert all the `return res.send(500, err)`s into `return next(err)`s.