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); ...@@ -78,8 +78,8 @@ int wsa_error_to_errno (int errcode);
if (unlikely (!(x))) { \ if (unlikely (!(x))) { \
const char *errstr = zmq::wsa_error (); \ const char *errstr = zmq::wsa_error (); \
if (errstr != NULL) { \ if (errstr != NULL) { \
fprintf (stderr, "Assertion failed: %s (%s:%d)\n", errstr, \ fprintf (stderr, "Assertion failed: %s [%i] (%s:%d)\n", \
__FILE__, __LINE__); \ errstr, WSAGetLastError (), __FILE__, __LINE__); \
fflush (stderr); \ fflush (stderr); \
zmq::zmq_abort (errstr); \ 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