From 63c41801c987cce24646c6751bf5070f0dd89281 Mon Sep 17 00:00:00 2001 From: joss17 Date: Wed, 10 Mar 2010 16:19:05 +0000 Subject: [PATCH] error message git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2512 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3connmgr.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretroshare/src/pqi/p3connmgr.cc b/libretroshare/src/pqi/p3connmgr.cc index 156f90677..0d7d8c197 100644 --- a/libretroshare/src/pqi/p3connmgr.cc +++ b/libretroshare/src/pqi/p3connmgr.cc @@ -2996,6 +2996,12 @@ std::list p3ConnectMgr::saveList(bool &cleanup) bool p3ConnectMgr::loadList(std::list 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 std::cerr << "p3ConnectMgr::loadList() Item Count: " << load.size() << std::endl; #endif