r3253 - trunk/libmutil/source

erik at minisip.org erik at minisip.org
Mon Apr 2 14:49:06 CEST 2007


Author: erik
Date: 2007-04-02 14:49:05 +0200 (Mon, 02 Apr 2007)
New Revision: 3253

Modified:
   trunk/libmutil/source/CommandString.cxx
Log:

 * libmutil: Improved error message for CommandString::get(key) when the
             key is not available. Report what the key was.



Modified: trunk/libmutil/source/CommandString.cxx
===================================================================
--- trunk/libmutil/source/CommandString.cxx	2007-03-29 08:18:40 UTC (rev 3252)
+++ trunk/libmutil/source/CommandString.cxx	2007-04-02 12:49:05 UTC (rev 3253)
@@ -110,7 +110,7 @@
 string CommandString::get(const string &key) const{
 	map<string,string>::const_iterator it = keys.find(key);
 	if( it == keys.end() ){
-		throw Exception("Key not found");
+		throw Exception("Key not found: "+key);
 	}
 	return it->second;
 }



More information about the Minisip-devel mailing list