Patch from Scott McKellar to clarify errors in bootstrapping of the server process
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 12 Jun 2007 01:11:52 +0000 (01:11 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 12 Jun 2007 01:11:52 +0000 (01:11 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@940 9efc2488-bf62-4759-914b-345cdb29e865

src/libstack/osrf_system.c

index d69ea6c..dc6b2ba 100644 (file)
@@ -64,13 +64,22 @@ int osrfSystemBootstrap( char* hostname, char* configfile, char* contextNode ) {
 
        /* first we grab the settings */
        if(!osrfSystemBootstrapClientResc(configfile, contextNode, "settings_grabber" )) {
-               osrfLogError( OSRF_LOG_MARK, "Unable to bootstrap");
+               osrfLogError( OSRF_LOG_MARK,
+                       "Unable to bootstrap for host %s from configuration file %s",
+                       hostname, configfile );
                return -1;
        }
 
-       osrf_settings_retrieve(hostname);
+       int retcode = osrf_settings_retrieve(hostname);
        osrf_system_disconnect_client();
 
+       if( retcode ) {
+               osrfLogError( OSRF_LOG_MARK,
+                       "Unable to retrieve settings for host %s from configuration file %s",
+                       hostname, configfile );
+               return -1;
+       }
+       
        jsonObject* apps = osrf_settings_host_value_object("/activeapps/appname");
        osrfStringArray* arr = osrfNewStringArray(8);