[Freeswitch-svn] [commit] r12948 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Wed Apr 8 00:02:16 PDT 2009


Author: mrene
Date: Wed Apr  8 02:02:16 2009
New Revision: 12948

Log:
Complain about file open errors in XML preprocessing

Modified:
   freeswitch/trunk/src/switch_xml.c

Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c	(original)
+++ freeswitch/trunk/src/switch_xml.c	Wed Apr  8 02:02:16 2009
@@ -1249,6 +1249,8 @@
 	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;
 	}
 



More information about the Freeswitch-svn mailing list