From 78f8e2a4503f95e23c8312193aecfb20455fa01e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 3 Dec 2013 18:15:02 +0000 Subject: [PATCH] Throw an exception instead of logging to the console --- app/assets/javascripts/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 0d57b80d4..56616c269 100644 --- a/app/assets/javascripts/router.js +++ b/app/assets/javascripts/router.js @@ -173,7 +173,7 @@ OSM.Router = function(map, rts) { var loadState = currentRoute.run('load', currentPath); router.stateChange(loadState || {}); } else { - console.log("Unable to match route for: " + currentPath); + throw "Unable to match route for: " + currentPath; } }; -- 2.43.2