Skip to content
Snippets Groups Projects
Commit 2a0163de authored by Andre Sailer's avatar Andre Sailer
Browse files

Geant4Handle: correct error message when casting does not work

parent 121eb94e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment