mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Log errors while saving servers instead of crashing
This commit is contained in:
parent
a2e98d7b1b
commit
900d2d8280
@ -127,7 +127,7 @@ Manager.prototype.save = function () {
|
|||||||
|
|
||||||
fs.writeFile(filePath, JSON.stringify(data), function (err) {
|
fs.writeFile(filePath, JSON.stringify(data), function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err
|
console.error('Manager save error: ' + err)
|
||||||
} else {
|
} else {
|
||||||
self.emit('servers')
|
self.emit('servers')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user