Permalink
Browse files

Merge branch 'master' of https://github.com/Raynos/node-trumpet into …

…Raynos-master
  • Loading branch information...
2 parents 3e16a7a + 84a8600 commit b5e7062e85d855d9998d53951b9bba4e1ed87724 @substack committed May 25, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 index.js
View
@@ -13,6 +13,10 @@ module.exports = function (opts) {
var parser = sax.parser(false);
var stream = select(parser, opts);
+
+ parser.onerror = function (err) {
+ stream.emit("error", err)
+ }
function write (buf) {
stream.emit('data', buf);

0 comments on commit b5e7062

Please sign in to comment.