From: Eduardo San Martin Morote Date: Mon, 11 May 2020 07:17:55 +0000 (+0200) Subject: chore: better error messages X-Git-Tag: v4.0.0-alpha.11~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=babd175b5380d7c19b36707c7d88ffba6a4abeeb;p=thirdparty%2Fvuejs%2Frouter.git chore: better error messages --- diff --git a/src/errors.ts b/src/errors.ts index 7772a7d0..1faa1363 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -58,16 +58,16 @@ const ErrorTypeMessages = { }: NavigationRedirectError) { return `Redirected from "${from.fullPath}" to "${stringifyRoute( to - )}" via a navigation guard` + )}" via a navigation guard.` }, [ErrorTypes.NAVIGATION_ABORTED]({ from, to }: NavigationFailure) { - return `Navigation aborted from "${from.fullPath}" to "${to.fullPath}" via a navigation guard` + return `Navigation aborted from "${from.fullPath}" to "${to.fullPath}" via a navigation guard.` }, [ErrorTypes.NAVIGATION_CANCELLED]({ from, to }: NavigationFailure) { - return `Navigation cancelled from "${from.fullPath}" to "${to.fullPath}" with a new \`push\` or \`replace\`` + return `Navigation cancelled from "${from.fullPath}" to "${to.fullPath}" with a new navigation.` }, [ErrorTypes.NAVIGATION_DUPLICATED]({ from, to }: NavigationFailure) { - return `Avoided redundant navigation to current location: "${from.fullPath}"` + return `Avoided redundant navigation to current location: "${from.fullPath}".` }, }