diff --git a/server.js b/server.js index 9b853e4..3becf2a 100644 --- a/server.js +++ b/server.js @@ -99,8 +99,10 @@ function analyticsAutoLoad() { } } } catch(e) { - console.error('Invalid JSON file for analytics, resetting.'); - console.error(e); + if (e.code !== 'ENOENT') { + console.error('Invalid JSON file for analytics, resetting.'); + console.error(e); + } analytics = defaultAnalyticsObject; } }