Report error if database file don't open successfully
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
b6567582e5
commit
0b777b89c2
@ -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();
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user