Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Add navParams to NavLink error
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ridgway committed Nov 13, 2015
1 parent 0f626b7 commit df2f978
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/createNavLinkComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ module.exports = function createNavLinkComponent (overwriteSpec) {
href = routeStore.makePath(routeName, props.navParams);
}
if (!href) {
throw new Error('NavLink created without href or unresolvable routeName \'' + routeName + '\'');
throw new Error('NavLink created without href or unresolvable ' +
'routeName \'' + routeName + '\' with params ' +
JSON.stringify(props.navParams));
}
return href;
},
Expand Down

0 comments on commit df2f978

Please sign in to comment.