servers: add dedicated catch for boost::system::system_error

To get message from error_code instead of what()
This commit is contained in:
loonycyborg 2021-10-27 17:43:42 +03:00
parent 8cdf83393e
commit 734a99c781

View file

@ -235,6 +235,8 @@ void server_base::run() {
} catch(const server_shutdown& e) {
LOG_SERVER << "Server has been shut down: " << e.what() << "\n";
break;
} catch(const boost::system::system_error& e) {
ERR_SERVER << "Caught system error exception from handler: " << e.code().message() << "\n";
} catch(const std::exception& e) {
ERR_SERVER << "Caught exception from handler: " << e.what() << "\n";
}