Permalink
Browse files

Did a partial refactoring.

  • Loading branch information...
1 parent e4955c4 commit 0eaaf262a55a19ae4b3513019fa10b87b7e85d23 @Kijewski committed Mar 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mysql-pool/pool.js
View
2 lib/mysql-pool/pool.js
@@ -114,7 +114,7 @@ MySQLPool.prototype.connectPool = function connectPool(n, cb) {
} else {
var err = new Error("All connections failed.");
if(cb) {
- cb(null, {failed:failedConnections});
+ cb(err, {errors:errors});
} else {
pool.emit("error", err);
}

0 comments on commit 0eaaf26

Please sign in to comment.