diff --git a/DDG4/src/Geant4Handle.cpp b/DDG4/src/Geant4Handle.cpp index 25a73c67caeb6e4aa50e159ff4b4873c45051a09..0ca48825e4262e6b41655e522cf831e67c4a7be8 100644 --- a/DDG4/src/Geant4Handle.cpp +++ b/DDG4/src/Geant4Handle.cpp @@ -88,8 +88,9 @@ namespace dd4hep { if (ptr) { return ptr; } - except("Geant4Handle", "Failed to convert object of type %s to handle of type %s!", - typ.first.c_str(),typ.second.c_str()); + std::string _t = typeName(typeid(TYPE)); + except("Geant4Handle", "Failed to convert object of type '%s' with name '%s' to handle of type '%s'!", + typ.first.c_str(),typ.second.c_str(),_t.c_str()); } except("Geant4Handle", "Failed to create object of type %s!", typ.first.c_str()); return 0;