Skip to content

Commit

Permalink
Add the collection name to the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Feb 19, 2025
1 parent f17eec6 commit bed46ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k4MarlinWrapper/src/components/EDM4hep2Lcio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ podio::CollectionBase* EDM4hep2LcioTool::getEDM4hepCollection(const std::string&
DataObject* p;
auto sc = m_eventDataSvc->retrieveObject(collName, p);
if (sc.isFailure()) {
throw GaudiException("Collection not found", name(), StatusCode::FAILURE);
throw GaudiException("Collection not found: " + collName, name(), StatusCode::FAILURE);
}
auto ptr = dynamic_cast<DataWrapperBase*>(p);
if (ptr) {
Expand Down

0 comments on commit bed46ed

Please sign in to comment.