aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/type.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-27 12:08:58 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-27 12:08:58 +0100
commit001c9917ace09f7b1c80d96eb067e1d37e86c546 (patch)
tree89e360961b9659a8c6b897c5412b7d6834b8eed9 /nihil.ucl/type.ccm
parent90aa957ca9b7c217af7569009d1675e0f3ff8e9b (diff)
downloadnihil-001c9917ace09f7b1c80d96eb067e1d37e86c546.tar.gz
nihil-001c9917ace09f7b1c80d96eb067e1d37e86c546.tar.bz2
improve error handling
Diffstat (limited to 'nihil.ucl/type.ccm')
-rw-r--r--nihil.ucl/type.ccm7
1 files changed, 4 insertions, 3 deletions
diff --git a/nihil.ucl/type.ccm b/nihil.ucl/type.ccm
index 088d196..cd98c01 100644
--- a/nihil.ucl/type.ccm
+++ b/nihil.ucl/type.ccm
@@ -6,13 +6,14 @@ module;
#include <concepts>
#include <format>
+#include <stdexcept>
#include <string>
#include <ucl.h>
export module nihil.ucl:type;
-import :error;
+import nihil;
namespace nihil::ucl {
@@ -50,8 +51,8 @@ export struct type_mismatch : error {
auto actual_type(this type_mismatch const &self) -> object_type;
private:
- object_type _expected_type;
- object_type _actual_type;
+ object_type m_expected_type;
+ object_type m_actual_type;
};
} // namespace nihil::ucl