Skip to content

Commit

Permalink
Deal with two more no-undef occurences caught by eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed Mar 19, 2017
1 parent 68f82d7 commit 565d5ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/app/private/toJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = function toJSON() {
// (So, we'll just ignore it, omitting it from this JSON-serializable value we're building.)
}//>-

return memo;
return _jsonSerializable;

}, {});//</_.reduce :: sailsAppSummary>

Expand Down
3 changes: 2 additions & 1 deletion lib/hooks/policies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ module.exports = function(sails) {

// Policy doesn't exist
if (!this.middleware[policyId] ) {
return Err.fatal.__UnknownPolicy__ (policyId, referencedIn, sails.config.paths.policies);
var routeAddrToDisplay = event.verb ? event.verb+' '+event.path : event.path;
return Err.fatal.__UnknownPolicy__ (policyId, routeAddrToDisplay, sails.config.paths.policies);
}

// Bind policy function to route.
Expand Down

0 comments on commit 565d5ae

Please sign in to comment.