@@ -513,7 +513,7 @@ std::unique_ptr<ROOT::RFieldBase> ROOT::RClassField::BeforeConnectPageSource(ROO
513513
514514void ROOT::RClassField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
515515{
516- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeVersion | kDiffTypeName );
516+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeVersion | kDiffTypeName ). ThrowOnError () ;
517517}
518518
519519void ROOT::RClassField::ConstructValue (void *where) const
@@ -611,7 +611,7 @@ std::unique_ptr<ROOT::RFieldBase> ROOT::REnumField::CloneImpl(std::string_view n
611611void ROOT::REnumField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
612612{
613613 // TODO(jblomer): allow enum to enum conversion only by rename rule
614- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion );
614+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion ). ThrowOnError () ;
615615}
616616
617617std::vector<ROOT::RFieldBase::RValue> ROOT::REnumField::SplitValue (const RValue &value) const
@@ -677,8 +677,8 @@ void ROOT::RPairField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
677677 static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
678678
679679 const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
680- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
681- EnsureMatchingTypePrefix (fieldDesc, prefixes);
680+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
681+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
682682
683683 const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
684684 if (nOnDiskSubfields != 2 ) {
@@ -822,7 +822,7 @@ void ROOT::RProxiedCollectionField::GenerateColumns(const ROOT::RNTupleDescripto
822822
823823void ROOT::RProxiedCollectionField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
824824{
825- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName );
825+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName ). ThrowOnError () ;
826826}
827827
828828void ROOT::RProxiedCollectionField::ConstructValue (void *where) const
@@ -989,7 +989,7 @@ std::unique_ptr<ROOT::RFieldBase> ROOT::RStreamerField::BeforeConnectPageSource(
989989
990990void ROOT::RStreamerField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
991991{
992- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion );
992+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion ). ThrowOnError () ;
993993}
994994
995995void ROOT::RStreamerField::ConstructValue (void *where) const
@@ -1224,8 +1224,8 @@ void ROOT::RTupleField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
12241224 static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
12251225
12261226 const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1227- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
1228- EnsureMatchingTypePrefix (fieldDesc, prefixes);
1227+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
1228+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
12291229
12301230 const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
12311231 const auto nSubfields = fSubfields .size ();
@@ -1386,8 +1386,8 @@ void ROOT::RVariantField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
13861386 static const std::vector<std::string> prefixes = {" std::variant<" };
13871387
13881388 const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1389- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
1390- EnsureMatchingTypePrefix (fieldDesc, prefixes);
1389+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
1390+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
13911391
13921392 if (fSubfields .size () != fieldDesc.GetLinkIds ().size ()) {
13931393 throw RException (R__FAIL (" number of variants on-disk do not match for " + GetQualifiedFieldName ()));
0 commit comments