Skip to content

Commit

Permalink
feat(utils): log which segment failed to retrieved the component from…
Browse files Browse the repository at this point in the history
… the routes config
  • Loading branch information
LeonardoGentile committed Apr 18, 2018
1 parent b296812 commit 3fc3c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function getComponent(route, routeNodeName, routesConfig) {
// first found segment one level deeper than the routeNodeLevel
return currentRoute.component;
}
throw new Error('route segment does not have a component field');
throw new Error(`Route segment '${currentSegment}' does not have a component field`);
}
else {
if (currentRoute.children) {
Expand Down

0 comments on commit 3fc3c06

Please sign in to comment.