mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Check config before starting MM (#3450)
I think it might be a good idea to check the config at every start.
This commit is contained in:
committed by
GitHub
parent
659e0c74cb
commit
866419eb95
@@ -64,12 +64,13 @@ function checkConfigFile () {
|
||||
for (const error of errors) {
|
||||
Log.error(`Line ${error.line} column ${error.column}: ${error.message}`);
|
||||
}
|
||||
return;
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Log.info("Checking modules structure configuration... ");
|
||||
|
||||
const position_list = Utils.getModulePositions();
|
||||
|
||||
// Make Ajv schema configuration of modules config
|
||||
// only scan "module" and "position"
|
||||
const schema = {
|
||||
|
Reference in New Issue
Block a user