X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/0872290a992e2f6db574c18ac36d1987318d477d..88ba6cd5952a9a7a58a8a0d9c5ae0691a1fdc5e1:/main.cpp diff --git a/main.cpp b/main.cpp index 9bffd8b..9a33928 100644 --- a/main.cpp +++ b/main.cpp @@ -75,9 +75,12 @@ static int simulation_main(int argc, char* argv[]) delete proc; } - catch (std::invalid_argument& e) { + catch (const std::invalid_argument& e) { THROW1(arg_error, 0, "%s", e.what()); } + catch (const std::exception& e) { + THROW1(0, 0, "%s", e.what()); + } return result; }