Skip to content

Commit

Permalink
[ntuple] Merger: don't abort if a file doesn't contain a RNTuple
Browse files Browse the repository at this point in the history
This mirrors the merge behavior of other ROOT objects
  • Loading branch information
silverweed committed Feb 4, 2025
1 parent 63dbb6c commit c0bebf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree/ntuple/v7/src/RNTupleMerger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ try {
TFile *inFile = dynamic_cast<TFile *>(pitr);
ROOT::RNTuple *anchor = inFile ? inFile->Get<ROOT::RNTuple>(ntupleName.c_str()) : nullptr;
if (!anchor) {
Error("RNTuple::Merge", "Failed to retrieve RNTuple anchor named '%s' from file '%s'", ntupleName.c_str(),
Warning("RNTuple::Merge", "Failed to retrieve RNTuple anchor named '%s' from file '%s'", ntupleName.c_str(),
inFile->GetName());
return -1;
continue;
}

auto source = RPageSourceFile::CreateFromAnchor(*anchor);
Expand Down

0 comments on commit c0bebf3

Please sign in to comment.