mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 02:21:36 +00:00
Merge pull request #336 from koush/patch-1
Error.message is read only on the QuickJS Runtime.
This commit is contained in:
commit
fc4a0f76a9
@ -130,7 +130,10 @@ class UDPTracker extends Tracker {
|
||||
cleanup()
|
||||
if (self.destroyed) return
|
||||
|
||||
try {
|
||||
// Error.message is readonly on some platforms.
|
||||
if (err.message) err.message += ` (${self.announceUrl})`
|
||||
} 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