Browse Source

update

master
zhaohe 2 years ago
parent
commit
0d0b373634
  1. 4
      errorcode.cpp
  2. 5
      errorcode.hpp

4
errorcode.cpp

@ -47,6 +47,10 @@ const char* error2str(int32_t code) {
ERR2STR(kinteraction_error_passwd_error);
ERR2STR(kinteraction_error_user_not_exist);
ERR2STR(kce_buffer_not_enough);
ERR2STR(kce_cmd_not_found);
ERR2STR(kce_cmd_param_num_error);
ERR2STR(kce_no_such_module);
ERR2STR(kSMTP2_NoError);
ERR2STR(kSMTP2_InitFail);
ERR2STR(kSMTP2_InvalidCmd);

5
errorcode.hpp

@ -56,6 +56,9 @@ typedef enum {
kinteraction_error_passwd_error = ERROR_CODE(10000, 23), // 密码错误
kinteraction_error_user_not_exist = ERROR_CODE(10000, 24), // 用户不存在
kce_buffer_not_enough = ERROR_CODE(10000, 25),
kce_cmd_not_found = ERROR_CODE(10000, 26),
kce_cmd_param_num_error = ERROR_CODE(10000, 27),
kce_no_such_module = ERROR_CODE(10000, 28),
/**
* @brief STMP2错误
@ -85,7 +88,7 @@ typedef enum {
} error_t;
const char* error2str(int32_t code);
const char* error2str(int32_t code);
} // namespace err
} // namespace iflytop
Loading…
Cancel
Save