diff --git a/src/main/java/com/vaticle/typedb/osi/loader/loader/TypeDBLoader.java b/src/main/java/com/vaticle/typedb/osi/loader/loader/TypeDBLoader.java index 8acc947..d94f80d 100644 --- a/src/main/java/com/vaticle/typedb/osi/loader/loader/TypeDBLoader.java +++ b/src/main/java/com/vaticle/typedb/osi/loader/loader/TypeDBLoader.java @@ -59,6 +59,9 @@ public void load() { TypeDBUtil.loadAndDefineSchema(schemaClient, options.databaseName, dc.getGlobalConfig().getSchema()); Util.info("loaded schema..."); } + } else { + validationReport.get("errors").forEach(Util::error); + System.exit(1); } TypeDBSession schemaSession = TypeDBUtil.getSchemaSession(schemaClient, options.databaseName);