From 257b6719ed89104018f6a521f6141ecd3eec3fd9 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 25 Jun 2025 21:15:34 +0100 Subject: nihil: add an error type --- nihil.config/write.ccm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nihil.config/write.ccm') diff --git a/nihil.config/write.ccm b/nihil.config/write.ccm index 71cdbb3..1a07dd7 100644 --- a/nihil.config/write.ccm +++ b/nihil.config/write.ccm @@ -4,16 +4,19 @@ module; +#include #include +import nihil; + export module nihil.config:write; -namespace nihil::config { +export namespace nihil::config { /* - * Write all config values (except defaults) to disk. Throws config::error - * on failure. + * Write all config values (except defaults) to disk. */ -auto write_to(std::filesystem::path const &filename) -> void; +auto write_to(std::filesystem::path const &filename) -> + std::expected; }; -- cgit v1.2.3