Skip to content
Snippets Groups Projects
Commit b9b4db3a authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

explicit error message when reading configuration fails

parent 374e5827
Branches
Tags
No related merge requests found
...@@ -49,6 +49,9 @@ pod2usage( ...@@ -49,6 +49,9 @@ pod2usage(
my $configuration_file = my $configuration_file =
$options{configuration} || '@confdir@/manager.conf'; $options{configuration} || '@confdir@/manager.conf';
my $configuration = Config::Tiny->read($configuration_file); my $configuration = Config::Tiny->read($configuration_file);
if (!$configuration) {
die Config::Tiny->errstr() . "\n";
}
AccountManager::DB->register_db( AccountManager::DB->register_db(
driver => $configuration->{database}->{type}, driver => $configuration->{database}->{type},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment