Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Map EHOSTUNREACH on Unix

  • Loading branch information...
commit b5d69f9a3e0e3699f88a4fbe60af7d8a3801009c 1 parent 179f475
@ry ry authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/unix/error.c
View
2  src/unix/error.c
@@ -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;
}
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.