diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-05 17:24:16 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-05 17:24:16 +0100 |
commit | ab95abb6bde0073ebb869624332adf028aac8dd7 (patch) | |
tree | 74df0d744fafb12719d3e3934e9d1bfbbb20e72f /source/cServer.cpp | |
parent | cSocket: added error logging to Bind() failures (diff) | |
download | cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.gz cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.bz2 cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.lz cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.xz cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.zst cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cServer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cServer.cpp b/source/cServer.cpp index f14a419a9..36fb71875 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -179,7 +179,7 @@ bool cServer::InitServer( int a_Port ) if( !m_pState->SListenClient.IsValid() )
{
- LOGERROR("m_SListenClient==INVALID_SOCKET (%s)", cSocket::GetLastErrorString() );
+ LOGERROR("m_SListenClient==INVALID_SOCKET (%s)", cSocket::GetErrorString( cSocket::GetLastError() ).c_str() );
return false;
}
@@ -196,13 +196,13 @@ bool cServer::InitServer( int a_Port ) if( m_pState->SListenClient.Bind( local ) != 0 )
{
- LOGERROR("bind fail (%s)", cSocket::GetLastErrorString() );
+ LOGERROR("bind fail (%s)", cSocket::GetErrorString( cSocket::GetLastError() ).c_str() );
return false;
}
if( m_pState->SListenClient.Listen( 10 ) != 0)
{
- LOGERROR("listen fail (%s)", cSocket::GetLastErrorString() );
+ LOGERROR("listen fail (%s)", cSocket::GetErrorString( cSocket::GetLastError() ).c_str() );
return false;
}
|