Skip to content

Commit 036edd8

Browse files
error message fix
1 parent da269d7 commit 036edd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Deferred.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class Deferred<T> {
2323

2424
this._timeout = setTimeout(() => {
2525
callback();
26-
this.reject(new TimeoutError('Operation timeout'));
26+
this.reject(new TimeoutError('Operation timeout: pool acquire'));
2727
}, timeoutInMillis);
2828
}
2929

test/integration/pool-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tap.test('pool expands only to max limit', (t) => {
2323
.then((obj) => {
2424
return pool.acquire().catch((e) => {
2525
t.ok(e instanceof TimeoutError);
26-
t.ok(e.message === 'Operation timeout');
26+
t.ok(e.message === 'Operation timeout: pool acquire');
2727
pool.release(obj);
2828
t.end();
2929
});

0 commit comments

Comments
 (0)