From 5b49a0fdc20e72b860ca074a954d69fb1e4ac888 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Tue, 26 Nov 2024 17:15:53 +0100 Subject: [PATCH] [ntuple] Fix error message for projected subfield --- tree/ntuple/v7/src/RNTupleModel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/ntuple/v7/src/RNTupleModel.cxx b/tree/ntuple/v7/src/RNTupleModel.cxx index 4b5fe8f1aa37d..1d5d75eb8a32b 100644 --- a/tree/ntuple/v7/src/RNTupleModel.cxx +++ b/tree/ntuple/v7/src/RNTupleModel.cxx @@ -392,7 +392,7 @@ ROOT::Experimental::RNTupleModel::AddProjectedField(std::unique_ptr for (const auto &subField : *field) { sourceField = FindField(mapping(subField.GetQualifiedFieldName())); if (!sourceField) - return R__FAIL("no such field: " + mapping(fieldName)); + return R__FAIL("no such field: " + mapping(subField.GetQualifiedFieldName())); fieldMap[&subField] = sourceField; }