From 707101be07e4a23069e814bd069a9ee2e4acd07f Mon Sep 17 00:00:00 2001 From: Nigel Kukard <nkukard@lbsd.net> Date: Sun, 12 Jan 2014 21:08:30 +0000 Subject: [PATCH] Better error messages for failed config file read --- opentrafficshaper/plugins/configmanager.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentrafficshaper/plugins/configmanager.pm b/opentrafficshaper/plugins/configmanager.pm index c4f7da2..0679164 100644 --- a/opentrafficshaper/plugins/configmanager.pm +++ b/opentrafficshaper/plugins/configmanager.pm @@ -3054,7 +3054,7 @@ sub _load_statefile if (! tie %stateHash, 'Config::IniFiles', ( -file => $config->{'statefile'} )) { # Check if we got errors, if we did use them for our reason my @errors = @Config::IniFiles::errors; - my $reason = $1 || join('; ',@errors) || "Config file blank?"; + my $reason = $1 || join('; ',@errors); $logger->log(LOG_ERR,"[CONFIGMANAGER] Failed to open statefile '%s': %s",$config->{'statefile'},$reason); -- GitLab