X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/0872290a992e2f6db574c18ac36d1987318d477d..6a266736a5a4f2e30a529662180050e8bc2b1a49:/main.cpp?ds=inline 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; }