Skip to content

Commit 3dc9b65

Browse files
committed
[tree] Include branch name in an error message.
Pointed out by Philippe in #18259.
1 parent d0a3daf commit 3dc9b65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tree/treeplayer/src/TTreeReaderValue.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,9 @@ void ROOT::Internal::TTreeReaderValueBase::ErrorAboutMissingProxyIfNeeded()
833833
// Print the error only if the branch name does not appear in the list of
834834
// missing proxies that the user explicitly requested not to error about
835835
if (!fTreeReader || fTreeReader->fMissingProxies.count(fBranchName.Data()) == 0)
836-
Error("TTreeReaderValue::Get()", "Value reader not properly initialized, did you call "
837-
"TTreeReader::Set(Next)Entry() or TTreeReader::Next()?");
836+
Error("TTreeReaderValue::Get()", "Value reader for branch " + fBranchName +
837+
" not properly initialized, did you call "
838+
"TTreeReader::Set(Next)Entry() or TTreeReader::Next()?");
838839
}
839840

840841
namespace cling {

0 commit comments

Comments
 (0)