Moved exit within if block

pull/6/head
Piero Toffanin 2017-03-30 13:04:12 -04:00
rodzic aee00077d4
commit 10abe3575a
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -533,6 +533,8 @@ if (config.powercycle){
}
async.series(commands, err => {
if (err) logger.error("Error during startup: " + err.message);
process.exit(1);
if (err){
logger.error("Error during startup: " + err.message);
process.exit(1);
}
});