Skip to content

Commit

Permalink
PR-requested changes, logging, 'const'
Browse files Browse the repository at this point in the history
  • Loading branch information
bwdev01 committed Dec 15, 2024
1 parent c377aaf commit feadcc2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,13 @@ double GaussianProcessGuider::result(double input, double SNR, double time_step,
{
deduceResult(time_step); // just pretend we would do dark guiding...
}
catch (std::runtime_error err)
catch (const std::runtime_error err)
{
reset();
std::string outStr = "PPEC: Model reset after exception: " + std::string(err.what());
GPDebug->Log(outStr.c_str());
std::ostringstream message;
message << "PPEC: Model reset after exception: " << err.what();
GPDebug->Write(message.str().c_str());

return parameters.control_gain_ * input;
}

Expand Down

0 comments on commit feadcc2

Please sign in to comment.