Skip to content

Commit

Permalink
Fix wrong year number in logs upon failed year (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Oct 4, 2023
1 parent 715d884 commit ab96d29
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 ab96d29

Please sign in to comment.