diff options
Diffstat (limited to 'server/src/entitylist.cc')
-rw-r--r-- | server/src/entitylist.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/entitylist.cc b/server/src/entitylist.cc index 04533c0..3ec15a5 100644 --- a/server/src/entitylist.cc +++ b/server/src/entitylist.cc @@ -197,11 +197,15 @@ std::string EntityList::getLatestVersion(std::string entity) throw(Exception) updateList(); - if(find(entity) == end()) + if(find(entity) == end()) { throw Exception("Entity ("+entityname+") ["+entity+"] does not exist"); + } + EntityListItem mli = (*this)[entity]; - if(mli.size() == 0) + if(mli.size() == 0) { throw Exception("Entity ("+entityname+") ["+entity+"] does not exist."); + } + PRACRO_DEBUG(entitylist, "Search for %s - found %s v%s\n", entity.c_str(), mli.begin()->second.c_str(), |