Add error code UV_EPIPE.
This commit is contained in:
parent
b328e4cb05
commit
e8497aee5a
@ -122,6 +122,7 @@ typedef enum {
|
||||
UV_ENOTCONN,
|
||||
UV_ENOTSOCK,
|
||||
UV_ENOTSUP,
|
||||
UV_EPIPE,
|
||||
UV_EPROTO,
|
||||
UV_EPROTONOSUPPORT,
|
||||
UV_EPROTOTYPE,
|
||||
|
||||
@ -76,6 +76,7 @@ const char* uv_err_name(uv_err_t err) {
|
||||
case UV_ENOTCONN: return "ENOTCONN";
|
||||
case UV_ENOTSOCK: return "ENOTSOCK";
|
||||
case UV_ENOTSUP: return "ENOTSUP";
|
||||
case UV_EPIPE: return "EPIPE";
|
||||
case UV_EPROTO: return "EPROTO";
|
||||
case UV_EPROTONOSUPPORT: return "EPROTONOSUPPORT";
|
||||
case UV_EPROTOTYPE: return "EPROTOTYPE";
|
||||
|
||||
@ -167,6 +167,7 @@ static uv_err_code uv_translate_sys_error(int sys_errno) {
|
||||
case 0: return UV_OK;
|
||||
case EACCES: return UV_EACCESS;
|
||||
case EBADF: return UV_EBADF;
|
||||
case EPIPE: return UV_EPIPE;
|
||||
case EAGAIN: return UV_EAGAIN;
|
||||
case ECONNRESET: return UV_ECONNRESET;
|
||||
case EFAULT: return UV_EFAULT;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user