Commit 8017bd37 authored by Jess Telford's avatar Jess Telford Committed by Tim Neutkens

More informative error for bad routes (#2300)

parent d8bc3862
...@@ -19,7 +19,7 @@ export default class PageLoader { ...@@ -19,7 +19,7 @@ export default class PageLoader {
normalizeRoute (route) { normalizeRoute (route) {
if (route[0] !== '/') { if (route[0] !== '/') {
throw new Error('Route name should start with a "/"') throw new Error(`Route name should start with a "/", got "${route}"`)
} }
route = route.replace(/index$/, '') route = route.replace(/index$/, '')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment