Browse Source

修复错误返回不显示错误详细信息的BUG

try_support_dt100n
zhaohe 4 weeks ago
parent
commit
e99b6cce04
  1. 11
      app_protocols/appexception/appexception.hpp
  2. 2
      appsrc/appconfig/basic/zappversion.hpp

11
app_protocols/appexception/appexception.hpp

@ -41,16 +41,17 @@ class appexception : public std::exception {
}
appexception(int32_t ecode, const string &description) {
string descriptionstr;
if (description.empty()) {
this->description = Internationalization::ecode2description(ecode);
descriptionstr = Internationalization::ecode2description(ecode);
} else {
this->description = description;
descriptionstr = description;
}
this->description = description;
this->ecode = ecode;
this->traceinfo = printStackTrace();
whatstr = description;
// thisclass.logger->error(whatstr);
whatstr = descriptionstr;
this->description = descriptionstr;
}
virtual ~appexception() {}

2
appsrc/appconfig/basic/zappversion.hpp

@ -1,3 +1,3 @@
#pragma once
#define VERSION "3.2.0"
#define VERSION "3.2.1"
#define PROJECT_NAME "TRANSMIT_DM"
Loading…
Cancel
Save