@contello/client 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -244,7 +244,7 @@ var ConnectionPool = class {
|
|
|
244
244
|
}
|
|
245
245
|
get() {
|
|
246
246
|
if (this.clients.length === 0) {
|
|
247
|
-
throw new Error("
|
|
247
|
+
throw new Error("@contello/client: connection pool is empty \u2014 call client.init() first");
|
|
248
248
|
}
|
|
249
249
|
const client = this.clients[this.currentIndex];
|
|
250
250
|
this.currentIndex = (this.currentIndex + 1) % this.poolSize;
|
package/dist/index.js
CHANGED
|
@@ -207,7 +207,7 @@ var ConnectionPool = class {
|
|
|
207
207
|
}
|
|
208
208
|
get() {
|
|
209
209
|
if (this.clients.length === 0) {
|
|
210
|
-
throw new Error("
|
|
210
|
+
throw new Error("@contello/client: connection pool is empty \u2014 call client.init() first");
|
|
211
211
|
}
|
|
212
212
|
const client = this.clients[this.currentIndex];
|
|
213
213
|
this.currentIndex = (this.currentIndex + 1) % this.poolSize;
|