mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Catch errors while spawning processes and log to console
This commit is contained in:
parent
8bb65aedcd
commit
bf7d6ed08c
@ -158,6 +158,10 @@ Server.prototype.start = function() {
|
||||
self.emit('state');
|
||||
});
|
||||
|
||||
instance.on('error', function (err) {
|
||||
console.log(err);
|
||||
});
|
||||
|
||||
this.pid = instance.pid;
|
||||
this.instance = instance;
|
||||
this.queryStatusInterval = setInterval(function () {
|
||||
@ -190,6 +194,10 @@ Server.prototype.start = function() {
|
||||
self.headlessInstance = null;
|
||||
});
|
||||
|
||||
headlessInstance.on('error', function (err) {
|
||||
console.log(err);
|
||||
});
|
||||
|
||||
self.headlessInstance = headlessInstance;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user