From 3d56f05c63349307e9b380dc57f36c6cb63fcc6f Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Thu, 6 Sep 2018 17:58:06 +0200 Subject: [PATCH 1/1] don't ignore errors from fetch().then() --- web/static/seepark_web.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 2aad39b..5baed88 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -223,7 +223,7 @@ setInterval( airtime.innerText = strftime('%Y-%m-%d H:%M', data['timestamp']); }) .catch(function(error) { - // handle error + console.log(error); }); fetch(api_url_currentwater) .then((resp) => resp.json()) @@ -232,7 +232,7 @@ setInterval( watertime.innerText = strftime('%Y-%m-%d H:%M', data['timestamp']); }) .catch(function(error) { - // handle error + console.log(error); }); }, refresh_interval -- 2.47.3