From 0589ea785b8dc3cc1f7f5e2d2b553761feec362a Mon Sep 17 00:00:00 2001 From: DominusVilicus Date: Sun, 16 Sep 2018 14:55:06 +0930 Subject: [PATCH] Throwing error instead of returning #217 fixed --- lib/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/router.js b/lib/router.js index fe1ef44..9aeb87d 100644 --- a/lib/router.js +++ b/lib/router.js @@ -635,7 +635,7 @@ Router.prototype.url = function (name, params) { return route.url.apply(route, args); } - return new Error("No route found for name: " + name); + throw new Error("No route found for name: " + name); }; /**