From e5df6fc2fcc66fb797afa5a4665120493031eca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez=20Baquero?= Date: Sun, 29 Mar 2020 12:22:44 -0500 Subject: [PATCH] fix: error param --- lib/client/udp-tracker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client/udp-tracker.js b/lib/client/udp-tracker.js index d16427d..5f87640 100644 --- a/lib/client/udp-tracker.js +++ b/lib/client/udp-tracker.js @@ -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) }