Skip to content

Commit

Permalink
ref(react): Improve React Router v6 error message (#5853)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Sep 29, 2022
1 parent e242ee6 commit 584c4cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/reactrouterv6.tsx
Expand Up @@ -190,7 +190,9 @@ export function withSentryReactRouterV6Routing<P extends Record<string, any>, R
!_customStartTransaction
) {
__DEBUG_BUILD__ &&
logger.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.');
logger.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
useEffect: ${_useEffect}. useLocation: ${_useLocation}. useNavigationType: ${_useNavigationType}.
createRoutesFromChildren: ${_createRoutesFromChildren}. matchRoutes: ${_matchRoutes}. customStartTransaction: ${_customStartTransaction}.`);

return Routes;
}
Expand Down

0 comments on commit 584c4cb

Please sign in to comment.