Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MBR-0001 committed Dec 27, 2020
1 parent 693faa6 commit 56b20b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class SourceQuery {

timer = setTimeout(() => {
this.unpacker.off("message", handler);
reject(new Error("timeout"));
reject(new Error("timed out waiting for response from " + this.address));
this.queryEnded();
}, this.timeout);

Expand All @@ -200,7 +200,7 @@ class SourceQuery {
}
while (attempts < 10 && !data);

if (!data) reject(new Error("timed out"));
if (!data) reject(new Error("timed out waiting for " + request_fn + " response from " + this.address));
else resolve(data);
});
}
Expand Down

0 comments on commit 56b20b9

Please sign in to comment.