Error handling with Express 3.x

Here is a quick middleware error handler. It essentially follows the express document to a T. It should however be noted that exceptions in the code will not be caught by this, since they will break the whole server. For that, you need to use node domains, which are new in 0.8.x and should be in an upcoming post.


Published by and tagged errors, express and node using 60 words.