diff --git a/frameworks/ets/ani/src/sts_sorting.cpp b/frameworks/ets/ani/src/sts_sorting.cpp index 40b54806041cf8e04309c964d311965138430262..cf6718dd7c70989c7ba117f36814864506b47a44 100644 --- a/frameworks/ets/ani/src/sts_sorting.cpp +++ b/frameworks/ets/ani/src/sts_sorting.cpp @@ -29,11 +29,11 @@ bool WarpNotificationSorting(ani_env *env, Notification::NotificationSorting &so ani_string hashCodeObj; std::string hashCode; if (env == nullptr) { - ANS_LOGE("invalid parameter value"); + ANS_LOGE("env is null"); return false; } if (!CreateClassObjByClassName(env, "notification.notificationSorting.NotificationSortingInner", cls, obj)) { - ANS_LOGE("Create obj faild. NotificationSortingInner"); + ANS_LOGE("Create NotificationSortingInner ClassObj faild"); return false; } // readonly slot: NotificationSlot @@ -47,7 +47,7 @@ bool WarpNotificationSorting(ani_env *env, Notification::NotificationSorting &so } hashCode = sorting.GetGroupKeyOverride(); if (ANI_OK != GetAniStringByString(env, hashCode, hashCodeObj) || hashCodeObj == nullptr) { - ANS_LOGE("GetAniStringByString faild"); + ANS_LOGE("GetAniStringByString hashCode faild"); return false; } // readonly hashCode: string;