]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
feat: better warn
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 27 Aug 2025 20:02:50 +0000 (22:02 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 27 Aug 2025 20:02:50 +0000 (22:02 +0200)
packages/router/src/experimental/route-resolver/resolver-fixed.ts

index 907844d3f575975abbfd714d9dc02b30c3c71550..70b8352aefc067a689b4fe91b8dacd3aeb00ac06 100644 (file)
@@ -176,7 +176,7 @@ export function createFixedResolver<
       // relative location by path or by name
       if (__DEV__ && to.name == null && currentLocation == null) {
         warn(
-          `Cannot resolve relative location "${JSON.stringify(to)}"without a current location. This will throw in production.`,
+          `Cannot resolve relative location "${JSON.stringify(to)}"without a "name" or a current location. This will crash in production.`,
           to
         )
         // NOTE: normally there is no query, hash or path but this helps debug