summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-04 20:54:38 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-04 20:54:38 +0200
commit00d0a99cfd1616e80efd86ec0531e5ca86a455e8 (patch)
tree419dcbe48c3c2017dac44ce73316e7746a33d571 /src/lib/config.h
parentc66c2f0cc3371a26edb6cf2198bcc3fc45b26079 (diff)
Add a description of which part of the config failed to load.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 96016d75b..8fbdeaf95 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -1143,7 +1143,12 @@ public:
/** Emitted if read() failed on an existing Config file. There is nothing
a listener can do about it: this is just for information.
*/
- static boost::signals2::signal<void ()> FailedToLoad;
+ enum class LoadFailure {
+ CONFIG,
+ CINEMAS,
+ DKDM_RECIPIENTS
+ };
+ static boost::signals2::signal<void (LoadFailure)> FailedToLoad;
/** Emitted if read() issued a warning which the user might want to know about */
static boost::signals2::signal<void (std::string)> Warning;
/** Emitted if there is a something wrong the contents of our config. Handler can call