ENH:get more errors when binding fails

Change-Id: I8c7aef26b63911589063583f37cb34b349d69002
This commit is contained in:
tao wang 2023-06-20 17:30:45 +08:00 committed by Lane.Wei
parent 2fe7629388
commit bc2357e9a3
1 changed files with 12 additions and 10 deletions

View File

@ -107,17 +107,19 @@ void BindJob::process()
if (result < 0) {
BOOST_LOG_TRIVIAL(trace) << "login: result = " << result;
int error_code;
wxString error_msg;
try
{
error_code = stoi(result_info);
result_info = wxGetApp().get_hms_query()->query_print_error_msg(error_code).ToStdString();
}
catch (...) {
;
}
if (result_code == BAMBU_NETWORK_ERR_BIND_ECODE_LOGIN_REPORT_FAILED) {
int error_code;
try
{
error_code = stoi(result_info);
result_info = wxGetApp().get_hms_query()->query_print_error_msg(error_code).ToStdString();
}
catch (...) {
;
}
}
post_fail_event(result_code, result_info);
return;
}