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,8 +107,9 @@ void BindJob::process()
if (result < 0) { if (result < 0) {
BOOST_LOG_TRIVIAL(trace) << "login: result = " << result; BOOST_LOG_TRIVIAL(trace) << "login: result = " << result;
if (result_code == BAMBU_NETWORK_ERR_BIND_ECODE_LOGIN_REPORT_FAILED) {
int error_code; int error_code;
wxString error_msg;
try try
{ {
error_code = stoi(result_info); error_code = stoi(result_info);
@ -117,6 +118,7 @@ void BindJob::process()
catch (...) { catch (...) {
; ;
} }
}
post_fail_event(result_code, result_info); post_fail_event(result_code, result_info);
return; return;