print receiver configurations and some error messages upon exit

This commit is contained in:
Dhanya Maliakal
2015-03-02 14:04:27 +01:00
parent 3fa5191705
commit 848569b216
5 changed files with 14 additions and 2 deletions

View File

@ -183,6 +183,7 @@ void qDetectorMain::SetUpWidgetWindow(){
// Default zoom Tool Tip
zoomToolTip = dockWidgetPlot->toolTip();
}
@ -207,9 +208,7 @@ void qDetectorMain::SetUpDetector(const string fName){
//if hostname doesnt exist even in shared memory
if(!host.length()){
#ifdef VERBOSE
cout << endl << "No Detector Connected." << endl;
#endif
qDefs::Message(qDefs::CRITICAL,"No Detectors Connected. ","qDetectorMain::SetUpDetector");
exit(-1);
}
@ -237,6 +236,7 @@ void qDetectorMain::SetUpDetector(const string fName){
default:
string detName = myDet->slsDetectorBase::getDetectorType(detType);
qDefs::checkErrorMessage(myDet,"qDetectorMain::SetUpDetector");
cout << "ERROR: " + host + " has unknown detector type \"" + detName + "\". Exiting GUI." << endl;
string errorMess = host+string(" has unknown detector type \"")+
detName+string("\". Exiting GUI.");
qDefs::Message(qDefs::CRITICAL,errorMess,"qDetectorMain::SetUpDetector");