module now dies with a message if bootstrap_client has not been called
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 13 Feb 2006 15:16:16 +0000 (15:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 13 Feb 2006 15:16:16 +0000 (15:16 +0000)
(instead of printing meaningless error about can't call 'env', etc.)

git-svn-id: svn://svn.open-ils.org/ILS/trunk@3038 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm

index 60d75a8..d91b9e5 100755 (executable)
@@ -32,6 +32,7 @@ sub config_value {
 
 
        my $bsconfig = OpenSRF::Utils::Config->current;
+       die "No bootstrap config exists.  Have you bootstrapped?\n" unless $bsconfig;
        my $host = $bsconfig->env->hostname;
 
        if($we_cache) {