Merge pull request #1742 from thelounge/xpaw/fetch-error-callback
Call callback on fetch error
This commit is contained in:
commit
553c24c909
@ -175,7 +175,7 @@ function fetch(uri, cb) {
|
|||||||
limit = 1024 * 50;
|
limit = 1024 * 50;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.on("error", function() {})
|
.on("error", () => cb(null))
|
||||||
.on("data", (data) => {
|
.on("data", (data) => {
|
||||||
length += data.length;
|
length += data.length;
|
||||||
buffers.push(data);
|
buffers.push(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user