error message

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2512 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-03-10 16:19:05 +00:00
parent d3018c4538
commit 63c41801c9

View File

@ -2996,6 +2996,12 @@ std::list<RsItem *> p3ConnectMgr::saveList(bool &cleanup)
bool p3ConnectMgr::loadList(std::list<RsItem *> load) bool p3ConnectMgr::loadList(std::list<RsItem *> load)
{ {
if (load.size() == 0) {
std::cerr << "p3ConnectMgr::loadList() list is empty, it may be a configuration problem." << std::endl;
return false;
}
#ifdef CONN_DEBUG #ifdef CONN_DEBUG
std::cerr << "p3ConnectMgr::loadList() Item Count: " << load.size() << std::endl; std::cerr << "p3ConnectMgr::loadList() Item Count: " << load.size() << std::endl;
#endif #endif