From 0c61bb970964fae9ed62aca2b9958818e4393d0b Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Mon, 3 Mar 2025 15:30:02 +0100 Subject: [PATCH] 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. --- Framework/AnalysisSupport/src/DataInputDirector.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Framework/AnalysisSupport/src/DataInputDirector.cxx b/Framework/AnalysisSupport/src/DataInputDirector.cxx index 1daab029b3e8e..d0d3fe0e6e17d 100644 --- a/Framework/AnalysisSupport/src/DataInputDirector.cxx +++ b/Framework/AnalysisSupport/src/DataInputDirector.cxx @@ -413,8 +413,10 @@ bool DataInputDescriptor::readTree(DataAllocator& outputs, header::DataHeader dh } } + // FIXME: we should distinguish between an actually missing object and one which has a non compatible + // format. if (!format) { - throw std::runtime_error(fmt::format(R"(Cannot find a viable format for object {}!)", fullpath.path())); + 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())); } auto schemaOpt = format->Inspect(fullpath);