X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/0872290a992e2f6db574c18ac36d1987318d477d..5f9d773575a07c0dd024cfc323d034d6181da9b6:/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; }