diff --git a/src/libraries/JANA/JEvent.h b/src/libraries/JANA/JEvent.h index 511fe1bbd..4ce518fcd 100644 --- a/src/libraries/JANA/JEvent.h +++ b/src/libraries/JANA/JEvent.h @@ -533,7 +533,7 @@ const typename T::collection_type* JEvent::GetCollection(std::string name, bool auto collection = GetCollectionBase(name, throw_on_missing); auto* typed_collection = dynamic_cast(collection); if (throw_on_missing && typed_collection == nullptr) { - throw JException("Databundle with uniquename '%s' does not contain %s", JTypeInfo::demangle().c_str()); + throw JException("Databundle with uniquename '%s' does not contain %s", name.c_str(), JTypeInfo::demangle().c_str()); } return typed_collection; }