Skip to content

Commit 7b51768

Browse files
committed
DPL: improve message in case of missing TTree
Good enough for now. It will not be the correct one once we support RNTuple as well.
1 parent 34384e0 commit 7b51768

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Framework/AnalysisSupport/src/DataInputDirector.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,10 @@ bool DataInputDescriptor::readTree(DataAllocator& outputs, header::DataHeader dh
413413
}
414414
}
415415

416+
// FIXME: we should distinguish between an actually missing object and one which has a non compatible
417+
// format.
416418
if (!format) {
417-
throw std::runtime_error(fmt::format(R"(Cannot find a viable format for object {}!)", fullpath.path()));
419+
throw std::runtime_error(fmt::format(R"(Couldn't get TTree "{}" from "{}". Please check https://aliceo2group.github.io/analysis-framework/docs/troubleshooting/#tree-not-found for more information.)", fullpath.path(), rootFS->GetFile()->GetName()));
418420
}
419421

420422
auto schemaOpt = format->Inspect(fullpath);

0 commit comments

Comments
 (0)