 # index
 app.get '/teams', (req, res) ->
   Team.find (err, teams) ->
+    app.te err
     res.render2 'teams', teams: teams
 
 # new

  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
