]> git.openstreetmap.org Git - rails.git/commitdiff
Throw an exception instead of logging to the console
authorTom Hughes <tom@compton.nu>
Tue, 3 Dec 2013 18:15:02 +0000 (18:15 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 3 Dec 2013 18:15:02 +0000 (18:15 +0000)
app/assets/javascripts/router.js

index 0d57b80d488c3d56e291272b2ba9070ac0bd5508..56616c2694d4cbe94ecd6dc2bb2dc8e590e73af5 100644 (file)
@@ -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;
     }
   };