fix: Better errors on logger init failure (#1857)

Fixes #1326.
This commit is contained in:
Sergey Kuznetsov
2025-02-18 15:43:13 +00:00
committed by GitHub
parent 4b178805de
commit 25296f8ffa
5 changed files with 66 additions and 16 deletions

View File

@@ -46,6 +46,7 @@
#include <array>
#include <cstddef>
#include <expected>
#include <optional>
#include <ostream>
#include <string>
@@ -278,8 +279,9 @@ public:
* @brief Global log core initialization from a @ref Config
*
* @param config The configuration to use
* @return Void on success, error message on failure
*/
static void
[[nodiscard]] static std::expected<void, std::string>
init(config::ClioConfigDefinition const& config);
/**