From: Mathieu Rene Date: Wed, 8 Apr 2009 07:02:16 +0000 (+0000) Subject: Complain about file open errors in XML preprocessing X-Git-Tag: v1.0.4~1238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e8ef618b5af8028c42ba775dc82ea329b1b647;p=thirdparty%2Ffreeswitch.git Complain about file open errors in XML preprocessing git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12948 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_xml.c b/src/switch_xml.c index 868470f204..b3d830009d 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -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; }