Skip to content

Commit

Permalink
lib/router.js
Browse files Browse the repository at this point in the history
fixed problem with no handlers
  • Loading branch information
NathanGRomano committed Jun 28, 2014
1 parent ed70feb commit fa17cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function Router () {
}

var fn = path[i];
if (!fn) return next();

debug('typeof fn? %s', typeof fn);

Expand Down Expand Up @@ -198,7 +199,7 @@ function Router () {
catch(e) {
debug('caught error %s', e);
debug('the fn causing problems', fn);
console.trace(e);
console.log(e.stack);
next(e);
}

Expand Down

0 comments on commit fa17cfa

Please sign in to comment.