Skip to content

Commit

Permalink
CalorimeterIslandCluster: fix evaluator error format string (#647)
Browse files Browse the repository at this point in the history
Prevents users from seeing confusing error messages.
  • Loading branch information
veprbl authored May 2, 2023
1 parent f73958d commit 2a3f268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/calorimetry/CalorimeterIslandCluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ void CalorimeterIslandCluster::AlgorithmInit(std::shared_ptr<spdlog::logger>& lo
if (eval.status()) {
std::stringstream sstr;
eval.print_error(sstr);
throw std::runtime_error(fmt::format("Error evaluating adjacencyMatrix: ", sstr.str()));
throw std::runtime_error(fmt::format("Error evaluating adjacencyMatrix: {}", sstr.str()));
}
m_log->debug("result = {}", eval.result());
m_log->trace("Evaluated {} to {}", u_adjacencyMatrix, eval.result());
return eval.result();
};
method_found = true;
Expand Down

0 comments on commit 2a3f268

Please sign in to comment.