From fa17cfac6404acf02564c1b23ac0e97654245e9b Mon Sep 17 00:00:00 2001 From: NathanGRomano Date: Sat, 28 Jun 2014 01:38:15 -0400 Subject: [PATCH] lib/router.js fixed problem with no handlers --- lib/router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/router.js b/lib/router.js index a9071b9..b48c629 100644 --- a/lib/router.js +++ b/lib/router.js @@ -147,6 +147,7 @@ function Router () { } var fn = path[i]; + if (!fn) return next(); debug('typeof fn? %s', typeof fn); @@ -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); }