add more error information : uv_shutdown

This commit is contained in:
Shuhei Tanuma 2012-07-01 20:21:33 +09:00
parent 65c638fdef
commit c80410fb08

View File

@ -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); r = uv_shutdown(shutdown, (uv_stream_t*)php_uv_get_current_stream(uv), (uv_shutdown_cb)php_uv_shutdown_cb);
if (r) { 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);
} }
} }