@@ -505,7 +505,7 @@ void ROOT::RClassField::BeforeConnectPageSource(ROOT::Internal::RPageSource &pag
505505
506506void ROOT::RClassField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
507507{
508- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeVersion | kDiffTypeName );
508+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeVersion | kDiffTypeName ). ThrowOnError () ;
509509}
510510
511511void ROOT::RClassField::ConstructValue (void *where) const
@@ -603,7 +603,7 @@ std::unique_ptr<ROOT::RFieldBase> ROOT::REnumField::CloneImpl(std::string_view n
603603void ROOT::REnumField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
604604{
605605 // TODO(jblomer): allow enum to enum conversion only by rename rule
606- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion );
606+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion ). ThrowOnError () ;
607607}
608608
609609std::vector<ROOT::RFieldBase::RValue> ROOT::REnumField::SplitValue (const RValue &value) const
@@ -669,8 +669,8 @@ void ROOT::RPairField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
669669 static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
670670
671671 const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
672- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
673- EnsureMatchingTypePrefix (fieldDesc, prefixes);
672+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
673+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
674674
675675 const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
676676 if (nOnDiskSubfields != 2 ) {
@@ -814,7 +814,7 @@ void ROOT::RProxiedCollectionField::GenerateColumns(const ROOT::RNTupleDescripto
814814
815815void ROOT::RProxiedCollectionField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
816816{
817- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName );
817+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName ). ThrowOnError () ;
818818}
819819
820820void ROOT::RProxiedCollectionField::ConstructValue (void *where) const
@@ -980,7 +980,7 @@ void ROOT::RStreamerField::BeforeConnectPageSource(ROOT::Internal::RPageSource &
980980
981981void ROOT::RStreamerField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
982982{
983- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion );
983+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion ). ThrowOnError () ;
984984}
985985
986986void ROOT::RStreamerField::ConstructValue (void *where) const
@@ -1215,8 +1215,8 @@ void ROOT::RTupleField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
12151215 static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
12161216
12171217 const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1218- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
1219- EnsureMatchingTypePrefix (fieldDesc, prefixes);
1218+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
1219+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
12201220
12211221 const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
12221222 const auto nSubfields = fSubfields .size ();
@@ -1377,8 +1377,8 @@ void ROOT::RVariantField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
13771377 static const std::vector<std::string> prefixes = {" std::variant<" };
13781378
13791379 const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1380- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
1381- EnsureMatchingTypePrefix (fieldDesc, prefixes);
1380+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
1381+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
13821382
13831383 if (fSubfields .size () != fieldDesc.GetLinkIds ().size ()) {
13841384 throw RException (R__FAIL (" number of variants on-disk do not match for " + GetQualifiedFieldName ()));
0 commit comments