From c931e317465b7edf39bd127f747538d2b3af0b53 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 14 Jan 2013 11:32:54 +0100 Subject: [PATCH] unix: make assertion message more descriptive --- src/unix/stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/stream.c b/src/unix/stream.c index 77d74ea7..afd48c1d 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -953,7 +953,8 @@ static void uv__read(uv_stream_t* stream) { stream->read2_cb((uv_pipe_t*)stream, -1, buf, UV_UNKNOWN_HANDLE); } - assert(!uv__io_active(&stream->io_watcher, UV__POLLIN)); + assert(!uv__io_active(&stream->io_watcher, UV__POLLIN) && + "stream->read_cb(status=-1) did not call uv_close()"); return; }