mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Add log when clientonly failed on starting.
This commit is contained in:
parent
bf24ee369f
commit
59aa84f6c8
@ -87,6 +87,13 @@
|
|||||||
child.on("error", function (err) {
|
child.on("error", function (err) {
|
||||||
process.stdout.write(`Client: ${err}`);
|
process.stdout.write(`Client: ${err}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
child.on('close', (code) => {
|
||||||
|
if (code != 0) {
|
||||||
|
console.log(`There something wrong. The clientonly is not running code ${code}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(function (reason) {
|
.catch(function (reason) {
|
||||||
fail(`Unable to connect to server: (${reason})`);
|
fail(`Unable to connect to server: (${reason})`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user