mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
fix: error param
This commit is contained in:
parent
29d2e6b1b3
commit
e5df6fc2fc
@ -133,8 +133,7 @@ class UDPTracker extends Tracker {
|
||||
try {
|
||||
// Error.message is readonly on some platforms.
|
||||
if (err.message) err.message += ` (${self.announceUrl})`
|
||||
} catch (ignored) {
|
||||
}
|
||||
} catch (ignoredErr) {}
|
||||
// errors will often happen if a tracker is offline, so don't treat it as fatal
|
||||
self.client.emit('warning', err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user