From: Tom Hughes Date: Tue, 3 Dec 2013 18:15:02 +0000 (+0000) Subject: Throw an exception instead of logging to the console X-Git-Tag: live~4601 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/78f8e2a4503f95e23c8312193aecfb20455fa01e?ds=sidebyside Throw an exception instead of logging to the console --- 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; } };