Nodejs: How to catch an exception from middleware?

Я использую node.js и промежуточное ПО компилятора "less":

app.configure(function() {
    // ...
    app.use(express.compiler({ src: __dirname + '/public', enable: ['less'] }))
    // ...
})

Теперь у меня неисправный .less -файл, но Я не могу найти никаких документов о том, как получить сообщение об ошибке. The page I receive is this:

<html>
  <head>
    <title>[object Object]</title>
    <style>
      /* css stuff */
    </style>
  </head>
  <body>
    <div id="wrapper">
      <h1>Connect</h1>

      <h2><em>500</em> [object Object]</h2>
      <ul id="stacktrace"></ul>
    </div>
  </body>
</html>

So that's not helpful. Anybody got an idea?

5
задан mikemaccana 21 October 2013 в 17:02
поделиться