logging an error when the events file cannot be found
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 19 Dec 2005 16:24:04 +0000 (16:24 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 19 Dec 2005 16:24:04 +0000 (16:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2443 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_event.c

index d1c9179..304af50 100644 (file)
@@ -78,6 +78,11 @@ void _oilsEventParseEvents() {
        
        char* xml = osrf_settings_host_value("/ils_events");
 
+       if(!xml) {
+               osrfLogError("Unable to find ILS Events file: %s", xml);
+               return;
+       }
+
        xmlDocPtr doc = xmlParseFile(xml);
        free(xml);
        int success = 0;