Skip to content
Snippets Groups Projects
Commit dbca4b91 authored by brinn's avatar brinn
Browse files

Throw exception when database is only half-way initialized.

SVN: 158
parent 338e511e
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ public class DBMigrationEngine
int size = list.size();
if (size == 0)
{
System.out.println("empty db");
throw new EnvironmentFailureException("Incompletely initialized database.");
} else if (size > 1)
{
throw new EnvironmentFailureException("To many versions found in DATABASE_VERSION: " + size);
......
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