Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

common: add UV_ENOTDIR error code

  • Loading branch information...
commit 197f591ebc82bc5f9b917f38bdaec410459ca298 1 parent 721ad8c
@bnoordhuis bnoordhuis authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  include/uv.h
  2. +2 −0  src/unix/error.c
  3. +1 −0  src/uv-common.c
View
1  include/uv.h
@@ -76,6 +76,7 @@ typedef enum {
UV_ENFILE,
UV_ENOBUFS,
UV_ENOMEM,
+ UV_ENOTDIR,
UV_ENONET,
UV_ENOPROTOOPT,
UV_ENOTCONN,
View
2  src/unix/error.c
@@ -72,6 +72,7 @@ static int uv__translate_lib_error(int code) {
case UV_ECONNREFUSED: return ECONNREFUSED;
case UV_EADDRINUSE: return EADDRINUSE;
case UV_EADDRNOTAVAIL: return EADDRNOTAVAIL;
+ case UV_ENOTDIR: return ENOTDIR;
case UV_ENOTCONN: return ENOTCONN;
case UV_EEXIST: return EEXIST;
default: return -1;
@@ -99,6 +100,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ECONNREFUSED: return UV_ECONNREFUSED;
case EADDRINUSE: return UV_EADDRINUSE;
case EADDRNOTAVAIL: return UV_EADDRNOTAVAIL;
+ case ENOTDIR: return UV_ENOTDIR;
case ENOTCONN: return UV_ENOTCONN;
case EEXIST: return UV_EEXIST;
default: return UV_UNKNOWN;
View
1  src/uv-common.c
@@ -76,6 +76,7 @@ const char* uv_err_name(uv_err_t err) {
case UV_ENFILE: return "ENFILE";
case UV_ENOBUFS: return "ENOBUFS";
case UV_ENOMEM: return "ENOMEM";
+ case UV_ENOTDIR: return "ENOTDIR";
case UV_ENONET: return "ENONET";
case UV_ENOPROTOOPT: return "ENOPROTOOPT";
case UV_ENOTCONN: return "ENOTCONN";
Please sign in to comment.
Something went wrong with that request. Please try again.