diff options
author | David Vašek <david.vasek@nic.cz> | 2021-06-06 11:22:05 +0200 |
---|---|---|
committer | David Vašek <david.vasek@nic.cz> | 2021-07-12 19:39:11 +0200 |
commit | 8ab8defb3e0426c92fdaf72637d37e9c7e80b986 (patch) | |
tree | 2617547398178af495ad182dc82f3a7412a9b828 /src/libknot/errcode.h | |
parent | contrib/files: return KNOT_EEXIST from make_dir() (diff) | |
download | knot-8ab8defb3e0426c92fdaf72637d37e9c7e80b986.tar.xz knot-8ab8defb3e0426c92fdaf72637d37e9c7e80b986.zip |
libknot/error: add a new error code -- KNOT_ENOTDIR
It fixes error reporting from syscalls and functions such as make_dir().
Diffstat (limited to 'src/libknot/errcode.h')
-rw-r--r-- | src/libknot/errcode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libknot/errcode.h b/src/libknot/errcode.h index 7a405b91a..a637a2c8c 100644 --- a/src/libknot/errcode.h +++ b/src/libknot/errcode.h @@ -56,6 +56,7 @@ enum knot_error { KNOT_EEXIST = -EEXIST, KNOT_ERANGE = -ERANGE, KNOT_EADDRNOTAVAIL = -EADDRNOTAVAIL, + KNOT_ENOTDIR = -ENOTDIR, KNOT_ERRNO_ERROR = -500, |