From babd175b5380d7c19b36707c7d88ffba6a4abeeb Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 11 May 2020 09:17:55 +0200 Subject: [PATCH] chore: better error messages --- src/errors.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}".` }, } -- 2.47.3