Skip to content

Commit

Permalink
Only start loading if schema validation passes
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingsilverfin committed Aug 10, 2022
1 parent 497c5f6 commit 98cadf9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98cadf9

Please sign in to comment.