diff --git a/frameworks/js/napi/src/common_utils.cpp b/frameworks/js/napi/src/common_utils.cpp index 519c49fdc2d4ce411b2d1f6e97f1c9896998557a..d4f19f30285b9d9b73d325fe695a2094c209c4a5 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,