Skip to content

Commit

Permalink
bugfix: toString was removed in gaudi v35
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl committed Nov 23, 2020
1 parent 00b642b commit 42a2190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k4FWCore/include/k4FWCore/DataHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ const T* DataHandle<T>::get() {
DataObjectHandle<DataWrapper<T>>::setRead();
return reinterpret_cast<const T*>(tmp->collectionBase());
} else {
std::string errorMsg("The type provided for " + DataObjectHandle<DataWrapper<T>>::toString() +
std::string errorMsg("The type provided for " + DataObjectHandle<DataWrapper<T>>::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<DataWrapper<T>>::toString());
std::string msg("Could not retrieve product " + DataObjectHandle<DataWrapper<T>>::pythonRepr());
throw GaudiException(msg, "wrong product name", StatusCode::FAILURE);
}

Expand Down

0 comments on commit 42a2190

Please sign in to comment.