Skip to content

Commit

Permalink
log error when socket errors
Browse files Browse the repository at this point in the history
  • Loading branch information
roks0n committed Feb 6, 2020
1 parent ddb133c commit bcfa4e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Crawler {
this.request,
(err, response) => {
if (err) {
console.error(`Error when calling p2p.peer.getPeers on ${peer.ip}`)
console.error(`Error when calling p2p.peer.getPeers on ${peer.ip}: ${err}`)
return resolve()
}

Expand Down Expand Up @@ -122,7 +122,7 @@ class Crawler {
this.request,
(err, response) => {
if (err) {
console.error(`Error when calling p2p.peer.getStatus on ${peer.ip}`)
console.error(`Error when calling p2p.peer.getStatus on ${peer.ip}: ${err}`)
return resolve()
}
this.heights.push({
Expand Down

0 comments on commit bcfa4e9

Please sign in to comment.