Skip to content

Commit

Permalink
fix a bug in PR349
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqiang-gu committed Dec 20, 2024
1 parent 398de01 commit 85c8de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/src/AnodePlane.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void Gen::AnodePlane::configure(const WireCell::Configuration& cfg)
sensitive_face = false;
log->debug("anode {} face {} is not sensitive", m_ident, iface);
}
if (!jface["response"].isNumeric() or !jface["anode"].isNumeric()) {
else if (!jface["response"].isNumeric() or !jface["anode"].isNumeric()) {
log->critical("Non-scalar value for response_x or anode_x is not supported.");
THROW(ValueError() << errmsg{"AnodePlane: error in configuration, expect scalar values for response_x and anode_x."});
}
Expand Down

0 comments on commit 85c8de3

Please sign in to comment.