fix(router): typo in starts with slash validation error
This commit is contained in:
parent
280540e4a2
commit
f6b75f56ad
|
@ -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`);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue