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

Commit

Permalink
Map EHOSTUNREACH on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 24, 2011
1 parent 179f475 commit b5d69f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/error.c
Expand Up @@ -75,6 +75,7 @@ static int uv__translate_lib_error(int code) {
case UV_ENOTDIR: return ENOTDIR;
case UV_ENOTCONN: return ENOTCONN;
case UV_EEXIST: return EEXIST;
case UV_EHOSTUNREACH: return EHOSTUNREACH;
default: return -1;
}

Expand Down Expand Up @@ -103,6 +104,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ENOTDIR: return UV_ENOTDIR;
case ENOTCONN: return UV_ENOTCONN;
case EEXIST: return UV_EEXIST;
case EHOSTUNREACH: return UV_EHOSTUNREACH;
case EAI_NONAME: return UV_ENOENT;
default: return UV_UNKNOWN;
}
Expand Down

0 comments on commit b5d69f9

Please sign in to comment.