From e5ec0f1b484ddc8c86aa3a39ab42da0dec2fad6a Mon Sep 17 00:00:00 2001 From: heguokai <275503077@qq.com> Date: Sat, 30 Aug 2025 09:45:46 +0800 Subject: [PATCH] =?UTF-8?q?AniAddSlotBySlotType=E6=97=A5=E5=BF=97=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heguokai <275503077@qq.com> --- frameworks/ets/ani/src/manager/ani_slot.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frameworks/ets/ani/src/manager/ani_slot.cpp b/frameworks/ets/ani/src/manager/ani_slot.cpp index 2c899e899..8cc192e7c 100644 --- a/frameworks/ets/ani/src/manager/ani_slot.cpp +++ b/frameworks/ets/ani/src/manager/ani_slot.cpp @@ -101,17 +101,18 @@ void AniAddSlotBySlotType(ani_env *env, ani_enum_item enumObj) ANS_LOGD("AniAddSlotBySlotType enter"); Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType::OTHER; if (!NotificationSts::SlotTypeEtsToC(env, enumObj, slotType)) { + ANS_LOGE("AniAddSlotBySlotType SlotTypeEtsToC failed"); NotificationSts::ThrowStsErroWithMsg(env, "AddSlotByType ERROR_INTERNAL_ERROR"); return; } int returncode = Notification::NotificationHelper::AddSlotByType(slotType); if (returncode != ERR_OK) { int externalCode = NotificationSts::GetExternalCode(returncode); - ANS_LOGE("AniAddSlotBySlotType -> error, errorCode: %{public}d", externalCode); + ANS_LOGE("AddSlotByType failed, errorCode: %{public}d", externalCode); NotificationSts::ThrowError(env, externalCode, NotificationSts::FindAnsErrMsg(externalCode)); + return; } ANS_LOGD("AniAddSlotBySlotType leave"); - return; } ani_object AniGetSlot(ani_env *env, ani_enum_item enumObj) -- Gitee