From 61f38bf5a9d14669a36667e431ea994e014473ad Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 4 Apr 2022 13:10:27 +0200 Subject: [PATCH] clearer error message for unknown detector type when hostname error --- slsDetectorSoftware/src/DetectorImpl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/slsDetectorSoftware/src/DetectorImpl.cpp b/slsDetectorSoftware/src/DetectorImpl.cpp index de4b45609..dc3fefac6 100644 --- a/slsDetectorSoftware/src/DetectorImpl.cpp +++ b/slsDetectorSoftware/src/DetectorImpl.cpp @@ -1288,8 +1288,13 @@ std::vector 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.";