summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-10 16:56:42 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-10 16:56:42 +0200
commit2b0dd758d5b0cb4dc2b390e72e476627deba75b5 (patch)
tree2ca6393a9fbef1142abb6b3d2c89ba1a2bd379e7 /source
parentAdded the permission "builtin.regeneratechunk" needed for regenerating chunks using a command. (diff)
downloadcuberite-2b0dd758d5b0cb4dc2b390e72e476627deba75b5.tar
cuberite-2b0dd758d5b0cb4dc2b390e72e476627deba75b5.tar.gz
cuberite-2b0dd758d5b0cb4dc2b390e72e476627deba75b5.tar.bz2
cuberite-2b0dd758d5b0cb4dc2b390e72e476627deba75b5.tar.lz
cuberite-2b0dd758d5b0cb4dc2b390e72e476627deba75b5.tar.xz
cuberite-2b0dd758d5b0cb4dc2b390e72e476627deba75b5.tar.zst
cuberite-2b0dd758d5b0cb4dc2b390e72e476627deba75b5.zip
Diffstat (limited to '')
-rw-r--r--source/cSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cSocket.cpp b/source/cSocket.cpp
index 09291f2a9..d3f0a07eb 100644
--- a/source/cSocket.cpp
+++ b/source/cSocket.cpp
@@ -75,11 +75,11 @@ void cSocket::CloseSocket()
if (shutdown(m_Socket, SHUT_RDWR) != 0)//SD_BOTH);
{
- LOGWARN("Error on shutting down socket (%s)", m_IPString.c_str());
+ LOGWARN("Error on shutting down socket (%s): %s", m_IPString.c_str(), GetLastErrorString().c_str());
}
if (close(m_Socket) != 0)
{
- LOGWARN("Error closing socket (%s)", m_IPString.c_str());
+ LOGWARN("Error closing socket (%s): %s", m_IPString.c_str(), GetLastErrorString().c_str());
}
#endif // else _WIN32