Skip to content

Commit

Permalink
Revert "Update error handling"
Browse files Browse the repository at this point in the history
This reverts commit 872b8de.
  • Loading branch information
uweseimet committed Jan 14, 2025
1 parent 36bf30d commit d3759c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/shared/s2p_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ int s2p_util::ParseAsUnsignedInt(const string &value)
try {
return static_cast<int>(stoul(value));
}
catch (...) {
catch (const invalid_argument&) {
return -1;
}
catch (const out_of_range&) {
return -1;
}
}
Expand Down

0 comments on commit d3759c0

Please sign in to comment.