From 8017bd377447615770cd7cc64e250f97960b3597 Mon Sep 17 00:00:00 2001 From: Jess Telford Date: Wed, 21 Jun 2017 05:43:38 +1000 Subject: [PATCH] More informative error for bad routes (#2300) --- lib/page-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/page-loader.js b/lib/page-loader.js index aa0c211e..67270aad 100644 --- a/lib/page-loader.js +++ b/lib/page-loader.js @@ -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$/, '')