Skip to content

Commit

Permalink
throw and not just warn with printouts as that could be silent as well
Browse files Browse the repository at this point in the history
  • Loading branch information
thattil committed Feb 21, 2025
1 parent 4be47d6 commit d396fb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slsDetectorSoftware/src/Detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ void Detector::loadParameters(const std::vector<std::string> &parameters) {
parser.Parse(current_line);
int m_id = parser.multi_id();
if (m_id != detShmId) {
LOG(logWARNING)
<< "Ignoring multi-detector index [" + std::to_string(m_id) +
"] in config file. Maybe for 'config' command?";
throw RuntimeError(
"Ignoring multi-detector index [" + std::to_string(m_id) +
"] in config file. Maybe use it for 'config' command?");
}
caller.call(parser.command(), parser.arguments(), parser.detector_id(),
defs::PUT_ACTION, std::cout, parser.receiver_id());
Expand Down

0 comments on commit d396fb1

Please sign in to comment.