.
This commit is contained in:
parent
ae1f5c2d24
commit
0dcf9a0ead
1 changed files with 2 additions and 1 deletions
|
@ -134,7 +134,8 @@ auto ParseField(xmlpp::Element* main) -> std::decay_t<decltype(Config)>::type {
|
|||
if constexpr(std::holds_alternative<AttributeConfig>(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<Type>()));
|
||||
}
|
||||
if constexpr(requires(std::string_view view) { Type::Parse(view); }) {
|
||||
return Type::Parse(node->get_value());
|
||||
|
|
Loading…
Reference in a new issue