- fix: Trapped an exception for corrupt config files.
This commit is contained in:
parent
88ddbbd26f
commit
05aa0925aa
3 changed files with 6 additions and 1 deletions
|
|
@ -191,7 +191,10 @@ sub readAllConfigs {
|
|||
|| $file =~ /^\./
|
||||
|| $file eq 'log.conf'
|
||||
|| $file eq 'spectre.conf';
|
||||
$configs{$file} = WebGUI::Config->new($webguiPath,$file);
|
||||
$configs{$file} = eval{WebGUI::Config->new($webguiPath,$file)};
|
||||
if ($@) {
|
||||
warn "Config file ".$file." looks to be corrupt or have a syntax error.";
|
||||
}
|
||||
}
|
||||
return \%configs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue