Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Jul 2, 2024
1 parent 60a9774 commit c2b21cc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/solver/hydro/management/HydroErrorsCollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ void HydroErrorsCollector::CheckForErrors() const
{
if (!areasErrorMap_.empty())
{
for (const auto& value:
areasErrorMap_ | std::views::filter([&key](const auto& p) { return p.first == key; })
| std::views::take(10))
for (const auto& key: areasErrorMap_ | std::views::keys)
{
logs.error() << "In Area " << value.first << ": " << value.second << " ";
for (const auto& value:
areasErrorMap_
| std::views::filter([&key](const auto& p) { return p.first == key; })
| std::views::take(10))
{
logs.error() << "In Area " << value.first << ": " << value.second << " ";
}
}

throw FatalError("Hydro validation has failed !");
}
}
Expand Down

0 comments on commit c2b21cc

Please sign in to comment.