Skip to content

Commit

Permalink
update(Flakkari): Handle exception in main function
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterLaplace committed Jan 8, 2024
1 parent 356ce28 commit 3ce704e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Flakkari/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

int main()
{
Flakkari::UDPServer server("localhost", 8080);
try {
Flakkari::UDPServer server("localhost", 8080);
server.run();
} catch (const std::exception &e) {
if (std::string(e.what()) != "exit")
return FLAKKARI_LOG_FATAL(e.what()), 84;
}
return 0;
}

0 comments on commit 3ce704e

Please sign in to comment.