Skip to content

Commit 5a91ce4

Browse files
committed
Tweak error message, formatting
1 parent ec48d43 commit 5a91ce4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/components/Routes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ var Routes = React.createClass({
322322

323323
warning(
324324
nextMatches.length,
325-
'No route matches path "%s". Make sure you have <Route path="%s"> somewhere in your routes',
325+
'No route matches path "%s". Make sure you have <Route path="%s"> somewhere in your <Routes>',
326326
path, path
327327
);
328328

@@ -438,8 +438,8 @@ var Routes = React.createClass({
438438

439439
invariant(
440440
route,
441-
'Unable to find a route named "' + to + '". Make sure you have ' +
442-
'a <Route name="' + to + '"> defined somewhere in your <Routes>'
441+
'Unable to find a route named "%s". Make sure you have <Route name="%s"> somewhere in your <Routes>',
442+
to, to
443443
);
444444

445445
path = route.props.path;

0 commit comments

Comments
 (0)