提交 8017bd37 编写于 作者: J Jess Telford 提交者: Tim Neutkens

More informative error for bad routes (#2300)

上级 d8bc3862
......@@ -19,7 +19,7 @@ export default class PageLoader {
normalizeRoute (route) {
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$/, '')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册