Skip to content

Die if there is no available config file in Registry::load_all()

Marek Szuba requested to merge github/fork/muffato/registry_failures into master

Created by: muffato

Hi Core,

Registry::load_all by default does not report any error if the config file is missing / if the file does not exist. It will only print a message if $verbose is switched on. We have scripts and Runnables that load the Registry and they basically have to duplicate the tests "if (defined ...)" and "if (-e ...)" to be able to output meaningful messages.

I propose that load_all() actually die if $config_file is not given / points to an unexisting file.

It passes registry.t, I hope it passes the other tests too !

Merge request reports