Skip to content

Commit

Permalink
log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MBR-0001 committed Dec 27, 2020
1 parent 8edb4f1 commit 518ed58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
language: node_js
node_js:
- 12
- 12
env:
- CI=true
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ class SourceQuery {
this.queries = 0;

this.client = dgram.createSocket("udp4");
this.client.on("error", () => {});
this.client.on("error", e => {
if (process.env.CI) console.log(e);
});
this.client.on("close", () => this.client.closed = true);

this.unpacker = new SQUnpacker(this.client, this.timeout);
Expand Down

0 comments on commit 518ed58

Please sign in to comment.