How to use pretty-error within a sailsjs app? <p><a href="https://www.npmjs.org/package/pretty-error" rel="nofollow">pretty-error</a> has to be set up like this:</p> <pre><code>require('pretty-error').start(function(){ startTheApp(); }); </code></pre> <p>As I don't now where sailsjs starts the app, I've tried this on <code>config/bootstrap.js</code>:</p> <pre><code>module.exports.bootstrap = function (cb) { require('pretty-error').start(cb) } </code></pre> <p>but it's not working.</p> <p>Any guideline?</p>