diff --git a/slsDetectorSoftware/src/Detector.cpp b/slsDetectorSoftware/src/Detector.cpp index d8d78f9d7..947668c33 100644 --- a/slsDetectorSoftware/src/Detector.cpp +++ b/slsDetectorSoftware/src/Detector.cpp @@ -99,6 +99,12 @@ void Detector::loadParameters(const std::vector ¶meters) { CmdParser parser; for (const auto ¤t_line : parameters) { parser.Parse(current_line); + if (parser.multi_id() != 0) { + throw RuntimeError( + "Multi-detector indices [" + std::to_string(parser.multi_id()) + + "] are not allowed in the file. Instead, use the index for " + "'config' or 'parameters' command?"); + } caller.call(parser.command(), parser.arguments(), parser.detector_id(), defs::PUT_ACTION, std::cout, parser.receiver_id()); }