   Team.findById req.param('id'), (err, team) ->
     return next '404' unless team
     team.people (err, people) ->
-      throw err if err
+      app.te err
       res.render2 'teams/show',
         team: team
         people: people

  return res.redirect '/auth/github' unless req.loggedIn

  Team.findById req.param('id'), (err, team) ->
    return next '404' unless team
    return next '401' unless team.includes req.user
    _.extend team, req.body

  return res.redirect '/auth/github' unless req.loggedIn

  Team.findById req.param('id'), (err, team) ->
    app.te err
    return next '404' unless team
    return next '401' unless team.includes req.user
    team.people (err, people) ->
      app.te err
      res.render2 'teams/edit', team: team, people: people

# update
