mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-11 10:12:19 +02:00
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;
|
||||
}
|
||||
})
|
||||
.on("error", function() {})
|
||||
.on("error", () => cb(null))
|
||||
.on("data", (data) => {
|
||||
length += data.length;
|
||||
buffers.push(data);
|
||||
|
|
Loading…
Reference in a new issue