diff options
author | deva <deva> | 2010-05-07 09:31:26 +0000 |
---|---|---|
committer | deva <deva> | 2010-05-07 09:31:26 +0000 |
commit | 965e43178736e6635cf27410e6d73f4ec0fdced2 (patch) | |
tree | 7cc297f68e93f6974baaf185259ac88f35df0355 /server/src/entitylist.cc | |
parent | 3241d29dec9beb0c367340465bd8d9bcab863692 (diff) |
LOTS of changes. libmicrohttpd fix for 'chunked' POST handling and LUA parameter checker from Pentominos among other things.
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(), |