Commit a5738529 authored by Simon Giesecke's avatar Simon Giesecke

Problem: wsa_assert does not include error code

Solution: extend output of wsa_assert
parent e8e24030
......@@ -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); \
} \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment