Skip to content
Snippets Groups Projects
Commit 7eb25b07 authored by Victor Kotlyar's avatar Victor Kotlyar Committed by Michael Davis
Browse files

Add extra safety check to verify command line command.

parent 60568e6e
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,11 @@ int VerifySchemaCmd::exceptionThrowingMain(const int argc, char *const *const ar
}
}
if (nullptr == schema) {
exception::Exception ex;
ex.getMessage() << "The catalogue schema uninitialized";
throw ex;
}
std::cerr << "Checking table names..." << std::endl;
const auto schemaTableNames = schema->getSchemaTableNames();
const auto dbTableNames = conn.getTableNames();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment