Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
UNIX: Error map ENOTSOCK
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Nov 3, 2011
1 parent 0698e3f commit 147487a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/error.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 147487a

Please sign in to comment.