Skip to content

Commit

Permalink
fix(redis-connection): error event is passed through
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-medvedev authored and manast committed Apr 19, 2020
1 parent d7f0374 commit a15b1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/redis-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class RedisConnection extends EventEmitter {
this.initializing = this.init();

this.initializing
.then(client => client.on('error', this.emit.bind(this)))
.then(client => client.on('error', this.emit.bind(this, 'error')))
.catch(err => this.emit('error', err));
}

Expand Down

0 comments on commit a15b1a1

Please sign in to comment.