]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: better error messages
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 11 May 2020 07:17:55 +0000 (09:17 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 11 May 2020 07:17:55 +0000 (09:17 +0200)
src/errors.ts

index 7772a7d02884abf607d6d016d742bb189edd59c7..1faa13635560679358d0453342db2fecdeeea20b 100644 (file)
@@ -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}".`
   },
 }