mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-04 20:00:04 +02:00
clearer error message for unknown detector type when hostname error
This commit is contained in:
parent
cbc7066620
commit
61f38bf5a9
@ -1288,8 +1288,13 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
|
|||||||
throw RuntimeError("Programming file must be an rbf file.");
|
throw RuntimeError("Programming file must be an rbf file.");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
case EIGER:
|
||||||
|
case GOTTHARD:
|
||||||
throw RuntimeError("programfpga not implemented for this detector");
|
throw RuntimeError("programfpga not implemented for this detector");
|
||||||
|
default:
|
||||||
|
throw RuntimeError(
|
||||||
|
"Unknown detector type. Did the 'hostname' command execute "
|
||||||
|
"successfully? Or use update mode in the detector server side.");
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(logINFO) << "This can take awhile. Please be patient.";
|
LOG(logINFO) << "This can take awhile. Please be patient.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user