提交 31e8ef61 authored 作者: Mathieu Rene's avatar Mathieu Rene

Complain about file open errors in XML preprocessing

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12948 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f3da60a2
......@@ -1249,6 +1249,8 @@ static int preprocess(const char *cwd, const char *file, int write_fd, int rleve
char *tcmd, *targ;
if ((read_fd = open(file, O_RDONLY, 0)) < 0) {
const char *reason = strerror(errno);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldnt open %s (%s)\n", file, reason);
return read_fd;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论