Skip to content
Snippets Groups Projects
Commit 35b1cdbc authored by Anjan Kaur's avatar Anjan Kaur
Browse files

Fixing lint errors

parent 9f8f688d
No related branches found
No related tags found
No related merge requests found
......@@ -90,8 +90,8 @@ if (target.isDirectory()) {
files.push(entry.fullPath);
try {
ajv.addSchema(require(entry.fullPath), entry.fullPath);
}catch(e){
logger.error('Ajv processing error for schema at path %s',entry.fullPath);
} catch (e){
logger.error('Ajv processing error for schema at path %s', entry.fullPath);
logger.error(e);
process.exit(1);
}
......
......@@ -424,10 +424,10 @@ Schema.process = function(schemaMap, schemaPath, docDir, schemaDir, metaElements
markdownWriter(schemaMap[schemaKey].filePath, object.mSchema, schemaPath, docDir, object.dep, docs),
schemaWriter(schemaMap[schemaKey].filePath, object.wSchema, schemaPath, schemaDir) ]);
}).catch(err => {
logger.error('Error occured in processing schema at path %s', sPath);
logger.error(err); // should we exit here or allow processing of other schemas?
process.exit(1);
});
logger.error('Error occured in processing schema at path %s', sPath);
logger.error(err); // should we exit here or allow processing of other schemas?
process.exit(1);
});
}).then(result => {
if (readme) {
console.log('Output processed. Trying to make a README.md now');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment