Skip to content

Commit

Permalink
Add area name for rare error case (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Oct 11, 2023
1 parent c79f00e commit cbce2c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ int OPT_DecompteDesVariablesEtDesContraintesDuProblemeAOptimiser(PROBLEME_HEBDO*
}
if (!Pump && !TurbEntreBornes && MonitorHourlyLev)
{
throw FatalError("Level explicit modeling requires flexible generation");
const std::string areaName(problemeHebdo->NomsDesPays[pays]);
throw FatalError("Level explicit modeling requires flexible generation in area " + areaName);
}
}

Expand Down

0 comments on commit cbce2c4

Please sign in to comment.