From ab96d2961096dc3f44b7337928b01b8a71aff5e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Omn=C3=A8s?= Date: Wed, 4 Oct 2023 13:11:49 +0200 Subject: [PATCH] Fix wrong year number in logs upon failed year (#1672) --- src/solver/simulation/solver.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/simulation/solver.hxx b/src/solver/simulation/solver.hxx index 00e5bc9353..a46781556f 100644 --- a/src/solver/simulation/solver.hxx +++ b/src/solver/simulation/solver.hxx @@ -1018,7 +1018,7 @@ void ISimulation::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()); } }