From 900d2d82807977e1099bedb3476c6cc8a89fda2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Tue, 28 Dec 2021 03:21:45 +0100 Subject: [PATCH] Log errors while saving servers instead of crashing --- lib/manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/manager.js b/lib/manager.js index b7edca7..03e5cbd 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -127,7 +127,7 @@ Manager.prototype.save = function () { fs.writeFile(filePath, JSON.stringify(data), function (err) { if (err) { - throw err + console.error('Manager save error: ' + err) } else { self.emit('servers') }