Report error if database file don't open successfully

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2019-06-20 14:27:45 +02:00
parent b6567582e5
commit 0b777b89c2
2 changed files with 4 additions and 2 deletions

View File

@ -165,7 +165,8 @@ bool ZRColaApp::OnInit()
} }
} else } else
wxFAIL_MSG(wxT("ZRCola.zrcdb is not a valid ZRCola database.")); wxFAIL_MSG(wxT("ZRCola.zrcdb is not a valid ZRCola database."));
} } else
wxFAIL_MSG(wxT("ZRCola.zrcdb not found or cannot be opened."));
// Initialize sockets. Otherwise Updater thread will not work. // Initialize sockets. Otherwise Updater thread will not work.
wxSocketBase::Initialize(); wxSocketBase::Initialize();

View File

@ -50,7 +50,8 @@ wxZRColaCharacterCatalogPanel::wxZRColaCharacterCatalogPanel(wxWindow* parent) :
} }
} else } else
wxFAIL_MSG(wxT("ZRCola.zrcdb is not a valid ZRCola database.")); wxFAIL_MSG(wxT("ZRCola.zrcdb is not a valid ZRCola database."));
} } else
wxFAIL_MSG(wxT("ZRCola.zrcdb not found or cannot be opened."));
if (!m_cg_db.idxRank.empty()) { if (!m_cg_db.idxRank.empty()) {
// Populate character group list. // Populate character group list.