From 0dcf9a0ead603a6ebe5bc3c0ee380f791922171e Mon Sep 17 00:00:00 2001 From: sha512sum Date: Sat, 19 Oct 2024 18:50:47 +0000 Subject: [PATCH] . --- library/include/larra/serialization/auto.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/include/larra/serialization/auto.hpp b/library/include/larra/serialization/auto.hpp index 29953fa..13aa9fa 100644 --- a/library/include/larra/serialization/auto.hpp +++ b/library/include/larra/serialization/auto.hpp @@ -134,7 +134,8 @@ auto ParseField(xmlpp::Element* main) -> std::decay_t::type { if constexpr(std::holds_alternative(Config.Base())) { xmlpp::Attribute* node = main->get_attribute(Info::kName); if(!node) { - throw AttributeSerializationError(std::format("Attribute [{}] serialization error", Info::kName)); + throw AttributeSerializationError( + std::format("Attribute [{}: {}] serialization error", Info::kName, nameof::nameof_full_type())); } if constexpr(requires(std::string_view view) { Type::Parse(view); }) { return Type::Parse(node->get_value());