From 4ca9999b91a1add946f395602cc1954d268ff883 Mon Sep 17 00:00:00 2001 From: "yangjun (CI)" Date: Mon, 28 Apr 2025 15:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangjun --- frameworks/js/napi/src/common_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/js/napi/src/common_utils.cpp b/frameworks/js/napi/src/common_utils.cpp index 519c49fdc..d4f19f302 100644 --- a/frameworks/js/napi/src/common_utils.cpp +++ b/frameworks/js/napi/src/common_utils.cpp @@ -37,7 +37,7 @@ static const std::unordered_map ERROR_CODE_MESSAGE { {ERROR_NOT_SYSTEM_APP, "The application isn't system application"}, {ERROR_PARAM_INVALID, "Invalid parameter"}, {ERROR_SYSTEM_CAP_ERROR, "SystemCapability not found"}, - {ERROR_INTERNAL_ERROR, "Internal error"}, + {ERROR_INTERNAL_ERROR, "Internal error. Possible cause: 1.IPC communication failed. 2.Memory operation error"}, {ERROR_IPC_ERROR, "Marshalling or unmarshalling error"}, {ERROR_SERVICE_CONNECT_ERROR, "Failed to connect to the service"}, {ERROR_NOTIFICATION_CLOSED, "Notification disabled"}, @@ -48,14 +48,14 @@ static const std::unordered_map ERROR_CODE_MESSAGE { {ERROR_OVER_MAX_NUM_PER_SECOND, "The notification sending frequency reaches the upper limit"}, {ERROR_DISTRIBUTED_OPERATION_FAILED, "Distributed operation failed"}, {ERROR_READ_TEMPLATE_CONFIG_FAILED, "Failed to read the template configuration"}, - {ERROR_NO_MEMORY, "No memory space"}, + {ERROR_NO_MEMORY, "Memory operation failed"}, {ERROR_BUNDLE_NOT_FOUND, "The specified bundle name was not found"}, {ERROR_NO_AGENT_SETTING, "There is no corresponding agent relationship configuration"}, {ERROR_DIALOG_IS_POPPING, "Dialog is popping"}, {ERROR_SETTING_WINDOW_EXIST, "The notification settings window is already displayed"}, {ERROR_NO_PROFILE_TEMPLATE, "Not exit noNotDisturb profile template"}, {ERROR_REPEAT_SET, "Repeat create or end"}, - {ERROR_NO_RIGHT, "No permission"}, + {ERROR_NO_RIGHT, "The specified process does not have the permission"}, {ERROR_EXPIRED_NOTIFICATION, "Low update version"}, {ERROR_NETWORK_UNREACHABLE, "Network unreachable"}, {ERROR_REJECTED_WITH_DISABLE_NOTIFICATION, -- Gitee