[asterisk-commits] russell: trunk r93004 - /trunk/main/config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 14 11:49:28 CST 2007


Author: russell
Date: Fri Dec 14 11:49:28 2007
New Revision: 93004

URL: http://svn.digium.com/view/asterisk?view=rev&rev=93004
Log:
Print an error message if a #included file does not exist

Modified:
    trunk/main/config.c

Modified: trunk/main/config.c
URL: http://svn.digium.com/view/asterisk/trunk/main/config.c?view=diff&rev=93004&r1=93003&r2=93004
==============================================================================
--- trunk/main/config.c (original)
+++ trunk/main/config.c Fri Dec 14 11:49:28 2007
@@ -1007,8 +1007,10 @@
 				do_include = ast_config_internal_load(cur, cfg, flags, real_inclusion_name) ? 1 : 0;
 				if (!ast_strlen_zero(exec_file))
 					unlink(exec_file);
-				if (!do_include)
+				if (!do_include) {
+					ast_log(LOG_ERROR, "The file '%s' was listed as a #include but it does not exist.\n", cur);
 					return -1;
+				}
 				/* XXX otherwise what ? the default return is 0 anyways */
 
 	} else {




More information about the asterisk-commits mailing list