diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-12-14 17:49:28 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-12-14 17:49:28 +0000 |
commit | 1e9f670e13e2a66f3d75a40f8dccb7e25c7e0a2f (patch) | |
tree | 6dbd84ddb20da8ddb3f1f059a7f90b2c316edb1b | |
parent | 6d7738590c7e452f52f7d2aab80ec91ac74b674e (diff) |
Print an error message if a #included file does not exist
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c index f2b54bc2d..7e72e3681 100644 --- a/main/config.c +++ b/main/config.c @@ -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 { |