   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) ->
-      console.log people
+      app.te err
       res.render2 'teams/edit', team: team, people: people
 
 # update

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

# new

  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
    _.extend team, req.body
