mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
add more error information : uv_shutdown
This commit is contained in:
parent
65c638fdef
commit
c80410fb08
2
php_uv.c
2
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user