Merged in Iosnowore/holocore (pull request #417)

Added console output for the specific datatable names if they're missing
This commit is contained in:
Obique PSWG
2017-01-24 02:52:26 +00:00
+5 -2
View File
@@ -66,8 +66,11 @@ public class DataManager implements IntentReceiver {
Log.start();
initialized = localDatabase.isOnline();
if (!localDatabase.isTable("users") || !localDatabase.isTable("characters")) {
throw new CoreException("The database is missing a table!");
String[] datatables = {"users", "characters"};
for (int i = 0; i < datatables.length - 1; i++) {
if (!localDatabase.isTable(datatables[i]))
throw new CoreException("The database is missing the table: " + datatables[i]);
}
}