wesnothd: remove catch clause for std::exception

it loses too much information about the exception
This commit is contained in:
loonycyborg 2021-10-26 01:26:49 +03:00
parent 297ee3d1ce
commit a6923bfef0

View file

@ -3081,12 +3081,7 @@ int main(int argc, char** argv)
}
}
try {
wesnothd::server(port, keep_alive, config_file, min_threads, max_threads).run();
} catch(const std::exception& e) {
ERR_SERVER << "terminated by C++ exception: " << e.what() << std::endl;
return 1;
}
wesnothd::server(port, keep_alive, config_file, min_threads, max_threads).run();
return 0;
}