[asterisk-commits] twilson: branch twilson/config_work r364339 - /team/twilson/config_work/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 27 16:27:20 CDT 2012


Author: twilson
Date: Fri Apr 27 16:27:17 2012
New Revision: 364339

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=364339
Log:
Add an error message for an "impossible" case

Modified:
    team/twilson/config_work/main/config_options.c

Modified: team/twilson/config_work/main/config_options.c
URL: http://svnview.digium.com/svn/asterisk/team/twilson/config_work/main/config_options.c?view=diff&rev=364339&r1=364338&r2=364339
==============================================================================
--- team/twilson/config_work/main/config_options.c (original)
+++ team/twilson/config_work/main/config_options.c Fri Apr 27 16:27:17 2012
@@ -465,6 +465,7 @@
 		}
 		if (!opt->handler) {
 			/* It should be impossible for an option to not have a handler */
+			ast_log(LOG_ERROR, "BUG! Somehow a config option for %s/%s was created with no handler!\n", cat, var->name);
 			return -1;
 		}
 		if (opt->handler(opt, var, obj)) {




More information about the asterisk-commits mailing list