From 727021be685ef01ecbe1e91200d517f5cb00ad55 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 25 Nov 2017 20:59:12 +0200 Subject: [PATCH] Call callback on fetch error --- src/plugins/irc-events/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc-events/link.js b/src/plugins/irc-events/link.js index d82a425a..c4aaa836 100644 --- a/src/plugins/irc-events/link.js +++ b/src/plugins/irc-events/link.js @@ -175,7 +175,7 @@ function fetch(uri, cb) { limit = 1024 * 50; } }) - .on("error", function() {}) + .on("error", () => cb(null)) .on("data", (data) => { length += data.length; buffers.push(data);