mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Catch problems read server config
This commit is contained in:
parent
45e3c7f088
commit
b6513b6d50
10
manager.js
10
manager.js
@ -131,9 +131,13 @@ Manager.prototype.load = (function () {
|
||||
return;
|
||||
}
|
||||
|
||||
JSON.parse(data).forEach(function (server) {
|
||||
self._addServer(server.id, server.title, server.port, server.mods);
|
||||
});
|
||||
try {
|
||||
JSON.parse(data).forEach(function (server) {
|
||||
self._addServer(server.id, server.title, server.port, server.mods);
|
||||
});
|
||||
} catch(e) {
|
||||
console.error("Manager load error: " + e);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user