diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-04 20:54:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-04 20:54:38 +0200 |
| commit | 00d0a99cfd1616e80efd86ec0531e5ca86a455e8 (patch) | |
| tree | 419dcbe48c3c2017dac44ce73316e7746a33d571 /src/lib/config.cc | |
| parent | c66c2f0cc3371a26edb6cf2198bcc3fc45b26079 (diff) | |
Add a description of which part of the config failed to load.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index d9a39077e..94595f9f8 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -69,7 +69,7 @@ using dcp::raw_convert; Config* Config::_instance = 0; int const Config::_current_version = 3; -boost::signals2::signal<void ()> Config::FailedToLoad; +boost::signals2::signal<void (Config::LoadFailure)> Config::FailedToLoad; boost::signals2::signal<void (string)> Config::Warning; boost::signals2::signal<bool (Config::BadReason)> Config::Bad; @@ -611,7 +611,7 @@ catch (...) { if (have_existing("config.xml") || have_existing("cinemas.xml") || have_existing("dkdm_recipients.xml")) { backup (); /* We have a config file but it didn't load */ - FailedToLoad (); + FailedToLoad(LoadFailure::CONFIG); } set_defaults (); /* Make a new set of signing certificates and key */ |
