From c80410fb08c82f6c0ce94e0f7244aa23920f894f Mon Sep 17 00:00:00 2001 From: Shuhei Tanuma Date: Sun, 1 Jul 2012 20:21:33 +0900 Subject: [PATCH] add more error information : uv_shutdown --- php_uv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_uv.c b/php_uv.c index 6f3dbbd..77f6e51 100644 --- a/php_uv.c +++ b/php_uv.c @@ -2263,7 +2263,7 @@ PHP_FUNCTION(uv_shutdown) r = uv_shutdown(shutdown, (uv_stream_t*)php_uv_get_current_stream(uv), (uv_shutdown_cb)php_uv_shutdown_cb); if (r) { - php_error_docref(NULL TSRMLS_CC, E_ERROR, "shutdown failed"); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "%s (ERRNO: %d)", uv_strerror(uv_last_error(uv_default_loop())), r); } }