diff --git a/k4FWCore/include/k4FWCore/DataHandle.h b/k4FWCore/include/k4FWCore/DataHandle.h index e58c1bd2..d4050d3a 100644 --- a/k4FWCore/include/k4FWCore/DataHandle.h +++ b/k4FWCore/include/k4FWCore/DataHandle.h @@ -143,12 +143,12 @@ const T* DataHandle::get() { DataObjectHandle>::setRead(); return reinterpret_cast(tmp->collectionBase()); } else { - std::string errorMsg("The type provided for " + DataObjectHandle>::toString() + + std::string errorMsg("The type provided for " + DataObjectHandle>::pythonRepr() + " is different from the one of the object in the store."); throw GaudiException(errorMsg, "wrong product type", StatusCode::FAILURE); } } - std::string msg("Could not retrieve product " + DataObjectHandle>::toString()); + std::string msg("Could not retrieve product " + DataObjectHandle>::pythonRepr()); throw GaudiException(msg, "wrong product name", StatusCode::FAILURE); }