Commit b96429f4 authored by Lennart Huth's avatar Lennart Huth
Browse files

Important clarification of the error message for negative material budgets

parent b0f1ecd5
......@@ -61,7 +61,7 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) {
if(!config.has("material_budget")) {
LOG(WARNING) << "No material budget given for " << m_detectorName << ", assuming zero";
} else if(config.get<double>("material_budget") < 0) {
throw InvalidValueError(config, "material_budget", "Material budget is negative");
throw InvalidValueError(config, "material_budget", "Material budget has to be positive");
} else {
m_materialBudget = config.get<double>("material_budget");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment