Add a description of which part of the config failed to load.
[dcpomatic.git] / src / lib / config.h
index 96016d75b8870ead42d58e9ad96a35a532f21b9e..8fbdeaf9584ffe9f9aa85c9084b2fd867aa80bb9 100644 (file)
@@ -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