Skip to content

Commit

Permalink
Fix wrong year number in logs upon failed year
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Oct 3, 2023
1 parent f22064c commit 4a31b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/simulation/solver.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ void ISimulation<Impl>::loopThroughYears(uint firstYear,
if (failed)
{
std::ostringstream msg;
msg << "Year " << year << " has failed in the previous set of parallel year.";
msg << "Year " << year + 1 << " has failed in the previous set of parallel year.";
throw FatalError(msg.str());
}
}
Expand Down

0 comments on commit 4a31b3a

Please sign in to comment.