From: Eduardo San Martin Morote Date: Wed, 27 Aug 2025 20:02:50 +0000 (+0200) Subject: feat: better warn X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ef67939ee813b8f9d9855cb7d99812731eb914e;p=thirdparty%2Fvuejs%2Frouter.git feat: better warn --- diff --git a/packages/router/src/experimental/route-resolver/resolver-fixed.ts b/packages/router/src/experimental/route-resolver/resolver-fixed.ts index 907844d3..70b8352a 100644 --- a/packages/router/src/experimental/route-resolver/resolver-fixed.ts +++ b/packages/router/src/experimental/route-resolver/resolver-fixed.ts @@ -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