Skip to content

Commit

Permalink
Throw exception instead of pointer to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jan 27, 2025
1 parent 433bac5 commit 71eccc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/simulation/common-hydro-remix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void RemixHydroForAllAreas(const Data::AreaList& areas,

if (!result)
{
throw new Data::AssertionError(
throw Data::AssertionError(
"Error in simplex optimisation. Check logs for more details.");
}
}
Expand Down

0 comments on commit 71eccc5

Please sign in to comment.