Forgot to update changelog Added fatal error should parsing JSON config fail (thanks jZed__ on freenode #webgui)

This commit is contained in:
Doug Bell 2006-11-13 22:17:56 +00:00
parent 8fa19e89fe
commit c93ce14c28
2 changed files with 5 additions and 0 deletions

View file

@ -340,6 +340,8 @@ sub new {
}
close($FILE);
my $conf = jsonToObj($json);
die "Couldn't parse JSON in config file '$filename'\n"
unless ref $conf;
my $self = {_webguiRoot=>$webguiPath, _configFile=>$filename, _config=>$conf};
bless $self, $class;
$config{$filename} = $self unless $noCache;