Fail if the config file cannot be sensibly parsed as an keyfile - i18n fix.

git-svn-id: http://emdebian.org/svn/current@7704 563faec7-e20c-0410-992a-a66f704d0ccd
main
codehelp 14 years ago
parent d605cd7ccb
commit 44e091ad7b

@ -831,7 +831,7 @@ sub cascade {
$file = shift;
$config = Config::Auto::parse($file, format => 'ini');
if (not defined $config or (scalar keys %$config) == 0) {
die ("$progname: ". _g("Failed to parse '$file'!\n"));
die ("$progname: ". sprintf(_g("Failed to parse '%s'!\n"), $file));
}
foreach $key (%$config) {
$type = lc($key) if (ref $key ne "HASH");

Loading…
Cancel
Save