Skip to content

Commit

Permalink
catch generic exception in main
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 24, 2024
1 parent 663b786 commit 4c42da5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/solver/modeler/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 4c42da5

Please sign in to comment.