Skip to content

Commit 0b6d72c

Browse files
committed
catch scrape error on request
1 parent 6051267 commit 0b6d72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/http-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class HTTPTracker extends Tracker {
8080
this._request(this.scrapeUrl, params, (err, data) => {
8181
if (err) return this.client.emit('warning', err)
8282
this._onScrapeResponse(data)
83-
})
83+
}).catch((err) => this.client.emit('warning', err))
8484
}
8585

8686
destroy (cb) {

0 commit comments

Comments
 (0)