Мелкий рефакторинг
This commit is contained in:
@@ -223,10 +223,11 @@ function initStatic(app, config) {
|
|||||||
await init();
|
await init();
|
||||||
await main();
|
await main();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
const mes = (branch == 'development' ? e.stack : e.message);
|
||||||
if (log)
|
if (log)
|
||||||
log(LM_FATAL, (branch == 'development' ? e.stack : e.message));
|
log(LM_FATAL, mes);
|
||||||
else
|
else
|
||||||
console.error(branch == 'development' ? e.stack : e.message);
|
console.error(mes);
|
||||||
|
|
||||||
ayncExit.exit(1);
|
ayncExit.exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user