Skip to content

Commit

Permalink
view error fix, needs verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Zolmeister committed Jul 17, 2013
1 parent 4eb97a3 commit d86616a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/hooks/views/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,7 @@ module.exports = function (sails) {
sails.log.verbose('Rendering view at: ', path);
return res.render(path, data, function (err) {
if (err) {

var msg = 'View rendering failed. Are you sure you have a file at ' +
sails.config.paths.views + '/' + path + '.' + sails.config.views.engine + '?';
sails.log.error(msg);
throw msg;
return next(err);
}

// Now actually render the view
Expand Down

0 comments on commit d86616a

Please sign in to comment.