codegangsta/martini — pull request #73 by icholy (2013-11-21 22:52:13+00:00)
Title: Allow handlers to return errors

It would be nice to be able to return errors from handlers.

``` go
m.Get("/", func() {
if err := doSomething(); err != nil {
// replace this
return http.StatusInternalServerError, err.Error()
// with this
return err
}
})
```