Skip to content

Commit

Permalink
Merge pull request #4021 from marta-lokhova/loadgen_crash
Browse files Browse the repository at this point in the history
do not crash core on malformed loadgen input

Reviewed-by: dmkozh
  • Loading branch information
latobarita authored Nov 14, 2023
2 parents e8330f3 + 8960ea6 commit 4a14c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/LoadGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ LoadGenerator::getMode(std::string const& mode)
}
else
{
// unknown mode
abort();
throw std::runtime_error(
fmt::format(FMT_STRING("Unknown loadgen mode: {}"), mode));
}
}

Expand Down

0 comments on commit 4a14c29

Please sign in to comment.