|
|
@@ -400,7 +400,11 @@ void CDeviceControlEntity::DeployTerminal(SpReqAnsContext<DeviceControlService_D
|
|
|
|
|
|
const int errUserCode = (int)(ans.Errcode);
|
|
|
if (errUserCode != 0) {
|
|
|
- tmpMsg = CSimpleStringA::Format("初始化失败:[%d] %s", errUserCode, ans.ErrMsg.GetData());
|
|
|
+ if (ans.ErrMsg.IsNullOrEmpty()) {
|
|
|
+ tmpMsg = CSimpleStringA::Format("%d", errUserCode);
|
|
|
+ } else {
|
|
|
+ tmpMsg = CSimpleStringA::Format("%s", ans.ErrMsg.GetData());
|
|
|
+ }
|
|
|
tmpResult = errUserCode;
|
|
|
Dbg("initialize failed: %s", (LPCTSTR)tmpMsg);
|
|
|
} else {
|