From: erickson Date: Mon, 13 Feb 2006 15:16:16 +0000 (+0000) Subject: module now dies with a message if bootstrap_client has not been called X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4b699b0a0636824dfe62b50a4b675711f79fc1ac;p=opensrf%2Fbjwebb.git 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/OpenSRF/trunk@638 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perlmods/OpenSRF/Utils/SettingsClient.pm b/src/perlmods/OpenSRF/Utils/SettingsClient.pm index 60d75a8..d91b9e5 100755 --- a/src/perlmods/OpenSRF/Utils/SettingsClient.pm +++ b/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) {