Skip to content
Snippets Groups Projects
Commit 02c6d5ac authored by Juraj Smiesko's avatar Juraj Smiesko Committed by MarkusFrankATcernch
Browse files

Improving error message

parent eb00b5bf
No related branches found
No related tags found
No related merge requests found
...@@ -219,13 +219,15 @@ void dd4hep::xml::setDetectorTypeFlag( dd4hep::xml::Handle_t e, dd4hep::DetElem ...@@ -219,13 +219,15 @@ void dd4hep::xml::setDetectorTypeFlag( dd4hep::xml::Handle_t e, dd4hep::DetElem
try{ try{
xml_comp_t x_dettype = x_det.child( dd4hep::xml::Strng_t("type_flags") ) ; xml_comp_t x_dettype = x_det.child( dd4hep::xml::Strng_t("type_flags") ) ;
unsigned int typeFlag = x_dettype.type() ; unsigned int typeFlag = x_dettype.type() ;
printout(DEBUG,"Utilities","+++ setDetectorTypeFlags for detector :%s set to 0x%x", det_name.c_str(), typeFlag ) ; printout(DEBUG,"Utilities","+++ setDetectorTypeFlags for detector: %s set to 0x%x", det_name.c_str(), typeFlag ) ;
sdet.setTypeFlag( typeFlag ) ; sdet.setTypeFlag( typeFlag ) ;
} }
catch(const std::runtime_error& ) { catch(const std::runtime_error& err) {
printout(INFO,"Utilities", printout(INFO,"Utilities",
"+++ setDetectorTypeFlags for detector :%s no xml element <type_flags/> found - nothing to set ", "+++ setDetectorTypeFlags for detector: %s not set.",
det_name.c_str() ) ; det_name.c_str() );
printout(DEBUG, "Utilities",
"+++ setDetectorTypeFlags encountered an error:\n%s", err.what());
} }
} }
#endif #endif
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