Renamed for clarity
parent
da34f3e63c
commit
225e7aa9c7
2
app.js
2
app.js
|
@ -31,7 +31,7 @@ const ajv = new Ajv({ useDefaults: true });
|
||||||
// get config
|
// get config
|
||||||
const config = common.getConfig();
|
const config = common.getConfig();
|
||||||
|
|
||||||
const baseConfig = ajv.validate(require('./config/baseSchema'), config);
|
const baseConfig = ajv.validate(require('./config/settingsSchema'), config);
|
||||||
if(baseConfig === false){
|
if(baseConfig === false){
|
||||||
console.log(colors.red(`settings.json incorrect: ${ajv.errorsText()}`));
|
console.log(colors.red(`settings.json incorrect: ${ajv.errorsText()}`));
|
||||||
process.exit(2);
|
process.exit(2);
|
||||||
|
|
Loading…
Reference in New Issue