From 0f15c1502a3c740a0d572a8026e320e92cf62e06 Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Tue, 26 Mar 2024 17:59:57 +0100 Subject: [PATCH] Catch error loading spots --- sotaspots.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sotaspots.js b/sotaspots.js index e35e822..ff4da3b 100644 --- a/sotaspots.js +++ b/sotaspots.js @@ -56,6 +56,9 @@ class SotaSpotReceiver { }); this.removeDeletedSpots(minSpotId, currentSpotIds); this.removeExpiredSpots(); + }) + .catch(error => { + console.error(error); }); }