From 64e1e65f24d6e517a39a943cb638d94ecebfbe38 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 13 Feb 2006 15:16:16 +0000 Subject: [PATCH] module now dies with a message if bootstrap_client has not been called (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 | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm b/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm index 60d75a80fe..d91b9e5ea3 100755 --- a/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm +++ b/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm @@ -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) { -- 2.43.2