use message() instead of what() for ec

This commit is contained in:
Lion Kortlepel
2022-10-06 01:35:50 +02:00
parent 7d1318653c
commit 4320a91e5c
2 changed files with 14 additions and 14 deletions

View File

@@ -62,11 +62,11 @@ void TClient::Disconnect(std::string_view Reason) {
boost::system::error_code ec;
mSocket.shutdown(socket_base::shutdown_both, ec);
if (ec) {
beammp_warnf("Failed to shutdown client socket: {}", ec.what());
beammp_warnf("Failed to shutdown client socket: {}", ec.message());
}
mSocket.close(ec);
if (ec) {
beammp_warnf("Failed to close client socket: {}", ec.what());
beammp_warnf("Failed to close client socket: {}", ec.message());
}
}