Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-01-26 22:30:30 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-01-26 22:30:30 +0300
commitdeb48b644827bfd4728b92ac5f6ff82909eb56fd (patch)
tree9bba13847a3b2c028acee2e5f897c8b11c745799 /index.js
parent7b6cfebd732dae5b630e12a107c0a4036b7100eb (diff)
handle error from load-ip-set
Diffstat (limited to 'index.js')
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index 9c8fa32..a78f1ab 100644
--- a/index.js
+++ b/index.js
@@ -85,6 +85,7 @@ function WebTorrent (opts) {
loadIPSet(opts.blocklist, {
headers: { 'user-agent': 'WebTorrent (http://webtorrent.io)' }
}, function (err, ipSet) {
+ if (err) return self.error('failed to load blocklist: ' + err.message)
self.blocked = ipSet
ready()
})