fix: error param

This commit is contained in:
Diego Rodríguez Baquero 2020-03-29 12:22:44 -05:00 committed by GitHub
parent 29d2e6b1b3
commit e5df6fc2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}