diff --git a/k4FWCore/include/k4FWCore/FunctionalUtils.h b/k4FWCore/include/k4FWCore/FunctionalUtils.h index b6101308..6769bdff 100644 --- a/k4FWCore/include/k4FWCore/FunctionalUtils.h +++ b/k4FWCore/include/k4FWCore/FunctionalUtils.h @@ -161,7 +161,7 @@ namespace k4FWCore { throw GaudiException( thisClass->name(), fmt::format("Failed to cast collection {} to the required type {}, the type of the collection is {}", - std::get(handles)[0].objKey(), EDM4hepType::typeName, + std::get(handles)[0].objKey(), typeid(EDM4hepType).name(), in ? in->getTypeName() : "[undetermined]"), StatusCode::FAILURE); }