diff --git a/cli.js b/cli.js
index 55193e068f736a673f1e7f35f5c04bdefb2aa250..679ca00aabde3df3924e34835a595b56434f7a2a 100755
--- a/cli.js
+++ b/cli.js
@@ -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);
       }
diff --git a/lib/schema.js b/lib/schema.js
index 4788076bd170f9974bf1d51143c7c8d162983e42..90c7219b6a70abd88f097fa492b7e7457924d5d6 100644
--- a/lib/schema.js
+++ b/lib/schema.js
@@ -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');