mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
report os error also
This commit is contained in:
parent
c88b65d0f6
commit
a345cfe8c5
@ -321,7 +321,7 @@ connection_reset(const PT(Connection) &connection, PRErrorCode errcode) {
|
||||
if (errcode == 0) {
|
||||
net_cat.info()
|
||||
<< "Connection " << (void *)connection
|
||||
<< " was closed normally by the other end.\n";
|
||||
<< " was closed normally by the other end";
|
||||
|
||||
} else {
|
||||
net_cat.info()
|
||||
@ -331,26 +331,28 @@ connection_reset(const PT(Connection) &connection, PRErrorCode errcode) {
|
||||
switch (errcode) {
|
||||
case PR_CONNECT_RESET_ERROR:
|
||||
net_cat.info(false)
|
||||
<< "connection reset\n";
|
||||
<< "connection reset";
|
||||
break;
|
||||
|
||||
#ifdef PR_SOCKET_SHUTDOWN_ERROR
|
||||
case PR_SOCKET_SHUTDOWN_ERROR:
|
||||
net_cat.info(false)
|
||||
<< "socket shutdown\n";
|
||||
<< "socket shutdown";
|
||||
break;
|
||||
|
||||
case PR_CONNECT_ABORTED_ERROR:
|
||||
net_cat.info(false)
|
||||
<< "connection aborted\n";
|
||||
<< "connection aborted";
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
net_cat.info(false)
|
||||
<< "NSPR error code " << errcode << "\n";
|
||||
<< "NSPR error code " << errcode;
|
||||
}
|
||||
}
|
||||
net_cat.info(false)
|
||||
<< " (os error = " << PR_GetOSError() << ").\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user