Skip to content

Commit

Permalink
Clarify that these type of view filenames (i.e. with extra dots) are …
Browse files Browse the repository at this point in the history
…not allowed (in assertion msg.)
  • Loading branch information
mikermcneil committed Apr 4, 2016
1 parent 0b2f297 commit 1319f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/views/onRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function onRoute (sails, route) {
// Ensure there isn't a `.` in the view name.
// (This limitation will be improved in a future version of Sails.)
else if (route.target.view.match(/\./)) {
sails.log.error('Ignoring attempt to bind route (`%s`) to a view with a `.` in the name (`%s`). Use a custom action with `res.view()` instead.',route.path, route.target.view);
sails.log.error('Ignoring attempt to bind route (`%s`) to a view with a `.` in the name (`%s`).',route.path, route.target.view);
return;
}
// Otherwise construct an action function which serves a view and then bind it to the route.
Expand Down

0 comments on commit 1319f81

Please sign in to comment.