From f6b75f56ad037c4c19c236b5a0e768450ca4e5f7 Mon Sep 17 00:00:00 2001 From: Dimitrios Loukadakis Date: Fri, 17 Jun 2016 02:13:05 +0300 Subject: [PATCH] fix(router): typo in starts with slash validation error --- modules/@angular/router/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/router/src/config.ts b/modules/@angular/router/src/config.ts index 33e337b1a4..f677fc5474 100644 --- a/modules/@angular/router/src/config.ts +++ b/modules/@angular/router/src/config.ts @@ -30,6 +30,6 @@ function validateNode(route: Route): void { throw new Error(`Invalid route configuration: routes must have path specified`); } if (route.path.startsWith('/')) { - throw new Error(`Invalid route configuration of route '/a': path cannot start with a slash`); + throw new Error(`Invalid route configuration of route '${route.path}': path cannot start with a slash`); } } \ No newline at end of file