title: How can I use errorhandler in nodejs connect
body: <p>I`ve tried to use errorhandler, but there is no deference between using errorhandler or not.
  I wonder how to use errorhandler module in nodejs.</p>
  
  <pre><code>var app = connect();
  if (process.env.NODE_ENV === 'development') {
  
    console.log('development on');
    app.use(errorhandler({log: errorNotification}));
  }
  
  function errorNotification(err, str, req) {
    var title = 'Error in ' + req.method + ' ' + req.url;
    console.log('title');
  }
  
  app.use( function (req,res) {
     res.writeHead(200,{'Content-Type': 'text/html'});
     aaaaa(); //to invoke Reference error
     res.end('Not Hello');
  });
  </code></pre>