dect
/
asterisk
Archived
13
0
Fork 0

Print an error message if a #included file does not exist

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93004 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2007-12-14 17:49:28 +00:00
parent b493b7c9fe
commit db90e46f52
1 changed files with 3 additions and 1 deletions

View File

@ -1007,8 +1007,10 @@ static int process_text_line(struct ast_config *cfg, struct ast_category **cat,
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 {