Log errors while saving servers instead of crashing

This commit is contained in:
Björn Dahlgren 2021-12-28 03:21:45 +01:00
parent a2e98d7b1b
commit 900d2d8280

View File

@ -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')
}