mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Merge pull request #208 from Dahlgren/bugfix/manager-save-error
Log errors while saving servers instead of crashing
This commit is contained in:
commit
c5d69ac61b
@ -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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user