mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-09-28 13:12:59 -04:00
Merged in Iosnowore/holocore (pull request #417)
Added console output for the specific datatable names if they're missing
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user