Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve free error msg further

  • Loading branch information...
commit 6732fe19a65f54b7bb6852aa65e7e655c137a884 1 parent e2c74bd
@felixge authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 index.js
View
6 index.js
@@ -87,8 +87,10 @@ RedisPool.prototype.free = function(client, cb) {
if (this._freePoolClient(client)) return;
if (this._freeExclusiveClient(client)) return;
- var err = new Error('RedisPool.FreeError: Cannot free unknown client.');
- err.client = client;
+ var err = new Error(
+ 'RedisPool.FreeError: Cannot free unknown client: ' +
+ this.stringify(client)
+ );
throw err;
};
Please sign in to comment.
Something went wrong with that request. Please try again.