mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Problem: wsa_assert does not include error code
Solution: extend output of wsa_assert
This commit is contained in:
parent
e8e24030ea
commit
a5738529e8
@ -78,8 +78,8 @@ int wsa_error_to_errno (int errcode);
|
||||
if (unlikely (!(x))) { \
|
||||
const char *errstr = zmq::wsa_error (); \
|
||||
if (errstr != NULL) { \
|
||||
fprintf (stderr, "Assertion failed: %s (%s:%d)\n", errstr, \
|
||||
__FILE__, __LINE__); \
|
||||
fprintf (stderr, "Assertion failed: %s [%i] (%s:%d)\n", \
|
||||
errstr, WSAGetLastError (), __FILE__, __LINE__); \
|
||||
fflush (stderr); \
|
||||
zmq::zmq_abort (errstr); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user