(MU_ERR_NOUSERNAME,MU_ERR_NOPASSWORD): New error codes.
Showing
2 changed files
with
8 additions
and
0 deletions
... | @@ -66,6 +66,9 @@ extern "C" { | ... | @@ -66,6 +66,9 @@ extern "C" { |
66 | #define MU_ERR_TCP_NO_PORT (MU_ERR_BASE + 26) | 66 | #define MU_ERR_TCP_NO_PORT (MU_ERR_BASE + 26) |
67 | 67 | ||
68 | #define MU_ERR_BAD_2047_INPUT (MU_ERR_BASE + 27) | 68 | #define MU_ERR_BAD_2047_INPUT (MU_ERR_BASE + 27) |
69 | |||
70 | #define MU_ERR_NOUSERNAME (MU_ERR_BASE + 28) | ||
71 | #define MU_ERR_NOPASSWORD (MU_ERR_BASE + 29) | ||
69 | 72 | ||
70 | const char *mu_errname __P((int e)); | 73 | const char *mu_errname __P((int e)); |
71 | const char *mu_strerror __P((int e)); | 74 | const char *mu_strerror __P((int e)); | ... | ... |
... | @@ -79,6 +79,8 @@ mu_errname (int e) | ... | @@ -79,6 +79,8 @@ mu_errname (int e) |
79 | EN(MU_ERR_TCP_NO_HOST); | 79 | EN(MU_ERR_TCP_NO_HOST); |
80 | EN(MU_ERR_TCP_NO_PORT); | 80 | EN(MU_ERR_TCP_NO_PORT); |
81 | EN(MU_ERR_BAD_2047_INPUT); | 81 | EN(MU_ERR_BAD_2047_INPUT); |
82 | EN(MU_ERR_NOUSERNAME); | ||
83 | EN(MU_ERR_NOPASSWORD); | ||
82 | } | 84 | } |
83 | 85 | ||
84 | return "SYSTEM ERROR"; | 86 | return "SYSTEM ERROR"; |
... | @@ -127,6 +129,9 @@ mu_strerror (int e) | ... | @@ -127,6 +129,9 @@ mu_strerror (int e) |
127 | ES(MU_ERR_TCP_NO_PORT, _("Tcp connections need a postive port")); | 129 | ES(MU_ERR_TCP_NO_PORT, _("Tcp connections need a postive port")); |
128 | 130 | ||
129 | ES(MU_ERR_BAD_2047_INPUT, _("Input string is not RFC 2047 encoded")); | 131 | ES(MU_ERR_BAD_2047_INPUT, _("Input string is not RFC 2047 encoded")); |
132 | |||
133 | ES(MU_ERR_NOUSERNAME, _("User name is not supplied")); | ||
134 | ES(MU_ERR_NOPASSWORD, _("User password is not supplied")); | ||
130 | } | 135 | } |
131 | 136 | ||
132 | return strerror (e); | 137 | return strerror (e); | ... | ... |
-
Please register or sign in to post a comment