danmactough/node-feedparser — pull request #22 by vesse (2012-08-15 06:57:49+00:00)
Title: Network error handling broken

calling `parseUrl` with a non-existing domain causes a crash/halt. Due to reasons unknown to me it seems to be jamming on `parser.emit('error', ...);` and the `parser.stream.on('error', function)` is not executed. A message about the error is shown on screen though:
```
Error: getaddrinfo ENOENT
at errnoException (dns.js:31:11)
at Object.onanswer [as oncomplete] (dns.js:123:16)
```

Removing the `emit` call fixed the issue so that the callback of `parseUrl` gets an error message and things are fine and dandy. However, I do not know what effects that may have in other cases, but at least in my use it seemed to work just fine.