summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwebserver.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/webserver.js b/webserver.js
index 8335dfd..1d618cc 100755
--- a/webserver.js
+++ b/webserver.js
@@ -34,6 +34,8 @@ function refreshWhatpulse(){
whatpulse.keys=body.Keys/*.replace(/,/g," ")*/;
whatpulse.clicks=body.Clicks/*.replace(/,/g," ")*/;
});
+ }).on("error",function(err){
+ console.log(`Whatpulse request error: ${err.message}`);
});
}
setInterval(refreshWhatpulse,6*3600*1000); //every 6 hours