Commit 4f89903e authored by Matthew Fernandez's avatar Matthew Fernandez
Browse files

fix: avoid exiting from within exception handlers

Calling exit() from within exception handlers in parse_args causes Valgrind
errors because the destructor for the thrown exception does not get called. By
rearranging this code we can avoid this issue and also be more precise with the
exceptions we catch. That is, we now avoid catching all exceptions from
std::stoul but instead catch only the ones we expect.
parent 28ff6f7e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment