Skip to content

Commit

Permalink
console.log for errors in example.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dimapaloskin committed Apr 14, 2017
1 parent 773a595 commit e1c678a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = githubAuth(async (req, res, auth) => {

if (auth.err) {
// Error handler
console.error(auth.err);
return send(res, 403, 'Forbidden');
}

Expand Down

0 comments on commit e1c678a

Please sign in to comment.