!232 add appId to errorData

Merge pull request !232 from 符子坤/master
This commit is contained in:
openharmony_ci 2022-05-30 01:43:32 +00:00 committed by Gitee
commit 85fbc5ef94
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -230,6 +230,10 @@ void InformPeerModuleError(CJson *out, const BindSession *session)
if (errorData == NULL) {
return;
}
if (AddStringToJson(errorData, FIELD_APP_ID, session->appId) != HC_SUCCESS) {
LOGE("Failed to add appId to errorData!");
return;
}
if (AddInt64StringToJson(errorData, FIELD_REQUEST_ID, session->reqId) != HC_SUCCESS) {
LOGE("Failed to add requestId to errorData!");
return;