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
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,9 @@ pod2usage(
my $configuration_file =
$options{configuration} || '@confdir@/manager.conf';
my $configuration = Config::Tiny->read($configuration_file);
if (!$configuration) {
die Config::Tiny->errstr() . "\n";
}
AccountManager::DB->register_db(
driver => $configuration->{database}->{type},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment