From 4c42da5a06edfa2b00cc80638ed78fb43c8b762a Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Tue, 24 Dec 2024 14:43:19 +0100 Subject: [PATCH] catch generic exception in main --- src/solver/modeler/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/solver/modeler/main.cpp b/src/solver/modeler/main.cpp index a99096e331..ba93687e92 100644 --- a/src/solver/modeler/main.cpp +++ b/src/solver/modeler/main.cpp @@ -54,6 +54,12 @@ int main(int argc, const char** argv) logs.error() << "Error while loading files, exiting"; return EXIT_FAILURE; } + catch (const std::exception& e) + { + logs.error() << e.what(); + logs.error() << "Error during the execution, exiting"; + return EXIT_FAILURE; + } return 0; }