Skip to content

Commit

Permalink
Merge pull request #193 from xujihui1985/master
Browse files Browse the repository at this point in the history
fix: emit the error instead of slient swallow it
  • Loading branch information
haio committed Apr 8, 2015
2 parents 9cf6501 + 6415a4c commit a5c04e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/zookeeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,12 @@ Zookeeper.prototype.listConsumers = function (groupId) {
that.listConsumers(groupId);
},
function (error, children) {
if (error)
if (error) {
debug(error);
else
that.emit('error', error);
} else {
that.emit('consumersChanged');
}
}
);
};
Expand Down

0 comments on commit a5c04e7

Please sign in to comment.