A solution (not carefully checked yet!) to issue by David @drj-io
Another somewhat related question: in Production mode, is there a way to get the view to pull up the default "error 500"...
Replace those lines of %yourSailsApp%/node_modules/sails/lib/hooks/views/res.view.js with theese lines:
// Render the view
return res.render(relPathToView, locals, function viewFailedToRender(err, renderedViewStr) {
if (err) {