diff --git a/frameworks/ets/ani/src/sts_notification_manager.cpp b/frameworks/ets/ani/src/sts_notification_manager.cpp index b3d1c3f12d3c7b63f4e17982a751988e969a276e..6cf4173c22512f439a9a62a4a348f947ddce8b1d 100644 --- a/frameworks/ets/ani/src/sts_notification_manager.cpp +++ b/frameworks/ets/ani/src/sts_notification_manager.cpp @@ -609,14 +609,13 @@ bool WarpNotificationDoNotDisturbDate( ANS_LOGE("WarpNotificationDoNotDisturbDate: create class faild"); return false; } - if (!EnumConvertNativeToAni( - env, "@ohos.notificationManager.notificationManager.DoNotDisturbType", - date->GetDoNotDisturbType(), stsEnumValue)) { + if (!EnumConvertNativeToAni(env, + "@ohos.notificationManager.notificationManager.DoNotDisturbType", date->GetDoNotDisturbType(), stsEnumValue)) { ANS_LOGE("EnumConvert_NativeToSts faild"); return false; } if (!SetPropertyByRef(env, outObj, "type", stsEnumValue)) { - ANS_LOGE("set type faild."); + ANS_LOGE("SetPropertyByRef 'type' faild."); return false; } if (!SetDate(env, outObj, "begin", date->GetBeginDate())) {