Skip to content

Commit

Permalink
fix: TypeError -> Error
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinBol committed Feb 19, 2024
1 parent 1bff3ca commit 29d9585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ class Cluster extends EventEmitter {

async _awaitPacket(trxSequenceNumber, timeout = 25000) {
if (this._trxHandlers[trxSequenceNumber]) {
throw new TypeError(`already waiting for this trx: ${trxSequenceNumber}`);
throw new Error(`already waiting for this trx: ${trxSequenceNumber}`);
}
return new Promise((resolve, reject) => {
const t = setTimeout(() => {
Expand Down

0 comments on commit 29d9585

Please sign in to comment.