Commit 64de3a6e 64de3a6efc4b5d43f226d65fd8479d218f70825f by Sergey Poznyakoff

New error code MU_ERR_NO_SUCH_USER

1 parent a1c58f4f
......@@ -49,6 +49,8 @@ extern "C" {
#define MU_ERR_LOCK_EXT_KILLED (MU_ERR_BASE | 0x00f)
/* external program was interrupted */
#define MU_ERR_NO_SUCH_USER (MU_ERR_BASE | 0x010)
const char* mu_errname __P((int e));
const char* mu_errstring __P((int e));
......
......@@ -64,6 +64,7 @@ mu_errname (int e)
EN(MU_ERR_LOCK_EXT_FAIL)
EN(MU_ERR_LOCK_EXT_ERR)
EN(MU_ERR_LOCK_EXT_KILLED)
EN(MU_ERR_NO_SUCH_USER)
}
return "SYSTEM ERROR";
......@@ -95,6 +96,8 @@ const char* mu_errstring (int e)
ES(MU_ERR_LOCK_EXT_FAIL, "Failed to exec external locker")
ES(MU_ERR_LOCK_EXT_ERR, "External locker failed")
ES(MU_ERR_LOCK_EXT_KILLED, "External locker killed")
ES(MU_ERR_NO_SUCH_USER, "No such user name")
}
return strerror(e);
......