Skip to content

Commit 9c827f9

Browse files
committed
Preserve runtime error for allowed parent level
1 parent 36c9bb1 commit 9c827f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/AnalysisSupport/src/DataInputDirector.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ std::shared_ptr<DataInputDescriptor> DataInputDescriptor::getParentFile(int coun
377377
}
378378

379379
if (mLevel == mContext.allowedParentLevel) {
380-
throw InvalidAODReadError(fmt::format(R"(while looking for tree "{}", the parent file was requested but we are already at level {} of maximal allowed level {} for DF "{}" in file "{}")", treename.c_str(), mLevel, mContext.allowedParentLevel, folderName.c_str(),
381-
rootFS->GetFile()->GetName()));
380+
throw std::runtime_error(fmt::format(R"(while looking for tree "{}", the parent file was requested but we are already at level {} of maximal allowed level {} for DF "{}" in file "{}")", treename.c_str(), mLevel, mContext.allowedParentLevel, folderName.c_str(),
381+
rootFS->GetFile()->GetName()));
382382
}
383383

384384
LOGP(info, "Opening parent file {} for DF {}", parentFileName->GetString().Data(), folderName.c_str());

0 commit comments

Comments
 (0)