clearer error message for unknown detector type when hostname error

This commit is contained in:
maliakal_d 2022-04-04 13:10:27 +02:00
parent cbc7066620
commit 61f38bf5a9

View File

@ -1288,8 +1288,13 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
throw RuntimeError("Programming file must be an rbf file.");
}
break;
default:
case EIGER:
case GOTTHARD:
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.";