Skip to content

Commit

Permalink
fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
j-faria committed Oct 4, 2024
1 parent d95a276 commit 35ecc8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/kima/SPLEAFmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ const double halflog2pi = 0.5*log(2.*M_PI);

void SPLEAFmodel::initialize_from_data(RVData& data)
{
if (data.number_instruments > 1)
throw std::exception("SPLEAFmodel currently only supports one instrument");
if (data.number_instruments > 1) {
std::string msg = "SPLEAFmodel currently only supports one instrument";
throw std::runtime_error(msg);
}

offsets.resize(data.number_instruments - 1);
jitters.resize(data.number_instruments);
Expand Down

0 comments on commit 35ecc8a

Please sign in to comment.