Skip to content

Commit

Permalink
handle error event
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz authored and indexzero committed Mar 23, 2013
1 parent 7891490 commit 777ee25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/godot/reactor/redis.js
Expand Up @@ -67,8 +67,8 @@ Redis.prototype.write = function (data) {
}

this.redisFn(this.client, data, function (err, data) {
if (!err) {
self.emit('data', data);
}
return err
? self.emit('error', err)
: self.emit('data', data);
});
};

0 comments on commit 777ee25

Please sign in to comment.