module now dies with a message if bootstrap_client has not been called
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 13 Feb 2006 15:16:16 +0000 (15:16 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
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/OpenSRF/trunk@638 9efc2488-bf62-4759-914b-345cdb29e865

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) {