Skip to content

Commit 3ef6793

Browse files
committed
feat: better warn
1 parent ece8d3d commit 3ef6793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/experimental/route-resolver/resolver-fixed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function createFixedResolver<
176176
// relative location by path or by name
177177
if (__DEV__ && to.name == null && currentLocation == null) {
178178
warn(
179-
`Cannot resolve relative location "${JSON.stringify(to)}"without a current location. This will throw in production.`,
179+
`Cannot resolve relative location "${JSON.stringify(to)}"without a "name" or a current location. This will crash in production.`,
180180
to
181181
)
182182
// NOTE: normally there is no query, hash or path but this helps debug

0 commit comments

Comments
 (0)