UNIX: Error map ENOTSOCK
This commit is contained in:
parent
0698e3f905
commit
147487afe6
@ -59,6 +59,7 @@ void uv_fatal_error(const int errorno, const char* syscall) {
|
||||
static int uv__translate_lib_error(int code) {
|
||||
switch (code) {
|
||||
case UV_ENOSYS: return ENOSYS;
|
||||
case UV_ENOTSOCK: return ENOTSOCK;
|
||||
case UV_ENOENT: return ENOENT;
|
||||
case UV_EACCESS: return EACCES;
|
||||
case UV_EAFNOSUPPORT: return EAFNOSUPPORT;
|
||||
@ -89,6 +90,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
|
||||
switch (sys_errno) {
|
||||
case 0: return UV_OK;
|
||||
case ENOSYS: return UV_ENOSYS;
|
||||
case ENOTSOCK: return UV_ENOTSOCK;
|
||||
case ENOENT: return UV_ENOENT;
|
||||
case EACCES: return UV_EACCESS;
|
||||
case EAFNOSUPPORT: return UV_EAFNOSUPPORT;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user