diff --git a/cli.js b/cli.js
index 07c1a5ca3e61c342f7d92642d32c6953e7528479..55193e068f736a673f1e7f35f5c04bdefb2aa250 100755
--- a/cli.js
+++ b/cli.js
@@ -88,7 +88,13 @@ if (target.isDirectory()) {
   readdirp({ root: schemaPath, fileFilter: `*.${schemaExtension}` })
     .on('data', entry => {
       files.push(entry.fullPath);
-      ajv.addSchema(require(entry.fullPath), entry.fullPath);
+      try {
+        ajv.addSchema(require(entry.fullPath), entry.fullPath);
+      }catch(e){
+        logger.error('Ajv processing error for schema at path %s',entry.fullPath);
+        logger.error(e);
+        process.exit(1);
+      }
     })
     .on('end', () => {
       Schema.setAjv(ajv);