fix(router): typo in starts with slash validation error

This commit is contained in:
Dimitrios Loukadakis 2016-06-17 02:13:05 +03:00 committed by vsavkin
parent 280540e4a2
commit f6b75f56ad
1 changed files with 1 additions and 1 deletions

View File

@ -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`);
}
}