Commit 88f49063 88f4906326fa3c582f738b2fbb0e2693792e432a by Sergey Poznyakoff

(MU_ERR_NOUSERNAME,MU_ERR_NOPASSWORD): New error codes.

1 parent 34286779
......@@ -66,6 +66,9 @@ extern "C" {
#define MU_ERR_TCP_NO_PORT (MU_ERR_BASE + 26)
#define MU_ERR_BAD_2047_INPUT (MU_ERR_BASE + 27)
#define MU_ERR_NOUSERNAME (MU_ERR_BASE + 28)
#define MU_ERR_NOPASSWORD (MU_ERR_BASE + 29)
const char *mu_errname __P((int e));
const char *mu_strerror __P((int e));
......
......@@ -79,6 +79,8 @@ mu_errname (int e)
EN(MU_ERR_TCP_NO_HOST);
EN(MU_ERR_TCP_NO_PORT);
EN(MU_ERR_BAD_2047_INPUT);
EN(MU_ERR_NOUSERNAME);
EN(MU_ERR_NOPASSWORD);
}
return "SYSTEM ERROR";
......@@ -127,6 +129,9 @@ mu_strerror (int e)
ES(MU_ERR_TCP_NO_PORT, _("Tcp connections need a postive port"));
ES(MU_ERR_BAD_2047_INPUT, _("Input string is not RFC 2047 encoded"));
ES(MU_ERR_NOUSERNAME, _("User name is not supplied"));
ES(MU_ERR_NOPASSWORD, _("User password is not supplied"));
}
return strerror (e);
......