diff --git a/app_protocols/appexception/appexception.hpp b/app_protocols/appexception/appexception.hpp index 40f3ae7..b0f315d 100644 --- a/app_protocols/appexception/appexception.hpp +++ b/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() {} diff --git a/appsrc/appconfig/basic/zappversion.hpp b/appsrc/appconfig/basic/zappversion.hpp index f82f33e..98a7d56 100644 --- a/appsrc/appconfig/basic/zappversion.hpp +++ b/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" \ No newline at end of file