From 4ec2ccd1774b9e6cb38810b97c1fd6f1329da089 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 12 Jun 2007 01:11:52 +0000 Subject: [PATCH] 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 --- src/libstack/osrf_system.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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); -- 2.11.0