From: miker Date: Tue, 12 Jun 2007 01:11:52 +0000 (+0000) Subject: Patch from Scott McKellar to clarify errors in bootstrapping of the server process X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4ec2ccd1774b9e6cb38810b97c1fd6f1329da089;p=working%2FOpenSRF.git Patch from Scott McKellar to clarify errors in bootstrapping of the server process git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@940 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libstack/osrf_system.c b/src/libstack/osrf_system.c index d69ea6c..dc6b2ba 100644 --- a/src/libstack/osrf_system.c +++ b/src/libstack/osrf_system.c @@ -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);