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