From 877dba4e3c04ad4d18106b96db2e281bfebd3944 Mon Sep 17 00:00:00 2001 From: yangxuguang-huawei Date: Thu, 12 Jun 2025 10:18:11 +0800 Subject: [PATCH] bugfix: error message for 16000018 Signed-off-by: yangxuguang-huawei Change-Id: I03a7c0df81d7ae4588a015ea36b672dad83d2e7b --- .../native/ability_business_error/ability_business_error.cpp | 2 +- .../ability_simulator/src/ability_runtime_error_util.cpp | 2 +- .../inner_api/error_utils/src/ability_runtime_error_util.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/native/ability/native/ability_business_error/ability_business_error.cpp b/frameworks/native/ability/native/ability_business_error/ability_business_error.cpp index 477a1cc50a6..098782a6c9e 100644 --- a/frameworks/native/ability/native/ability_business_error/ability_business_error.cpp +++ b/frameworks/native/ability/native/ability_business_error/ability_business_error.cpp @@ -74,7 +74,7 @@ constexpr const char* ERROR_MSG_WUKONG_MODE_CANT_MOVE_STATE = constexpr const char* ERROR_MSG_START_OPTIONS_CHECK_FAILED = "The StartOptions check failed."; constexpr const char* ERROR_MSG_ABILITY_ALREADY_RUNNING = "The ability is already running."; constexpr const char* ERROR_MSG_NOT_SUPPORT_CROSS_APP_START = - "Redirection to a third-party application is not allowed in API version 11 or later."; + "Redirection to a third-party application is not allowed in API version greater than 11."; constexpr const char* ERROR_MSG_CANNOT_MATCH_ANY_COMPONENT = "No matching ability is found."; constexpr const char* ERROR_MSG_TARGET_BUNDLE_NOT_EXIST = "The bundle does not exist or no patch has been applied."; constexpr const char* ERROR_MSG_NO_MAIN_ABILITY = "The target bundle has no main ability."; diff --git a/frameworks/simulator/ability_simulator/src/ability_runtime_error_util.cpp b/frameworks/simulator/ability_simulator/src/ability_runtime_error_util.cpp index dd014077501..7f397c64d78 100644 --- a/frameworks/simulator/ability_simulator/src/ability_runtime_error_util.cpp +++ b/frameworks/simulator/ability_simulator/src/ability_runtime_error_util.cpp @@ -132,7 +132,7 @@ const std::map ERROR_MSG_MAP = { { ERR_ABILITY_RUNTIME_EXTERNAL_START_ABILITY_WAITTING, "Another ability is being started. Wait until it finishes starting." }, { ERR_ABILITY_RUNTIME_EXTERNAL_NOT_SUPPORT_CROSS_APP_START, - "Redirection to a third-party application is not allowed in API version 11 or later." }, + "Redirection to a third-party application is not allowed in API version greater than 11." }, { ERR_ABILITY_RUNTIME_EXTERNAL_CANNOT_MATCH_ANY_COMPONENT, "No matching ability is found." }, { ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_URI_FLAG, diff --git a/interfaces/inner_api/error_utils/src/ability_runtime_error_util.cpp b/interfaces/inner_api/error_utils/src/ability_runtime_error_util.cpp index 6a0c4a86224..2b7abb3d252 100644 --- a/interfaces/inner_api/error_utils/src/ability_runtime_error_util.cpp +++ b/interfaces/inner_api/error_utils/src/ability_runtime_error_util.cpp @@ -131,7 +131,7 @@ const std::map ERROR_MSG_MAP = { { ERR_ABILITY_RUNTIME_EXTERNAL_START_ABILITY_WAITTING, "Another ability is being started. Wait until it finishes starting." }, { ERR_ABILITY_RUNTIME_EXTERNAL_NOT_SUPPORT_CROSS_APP_START, - "Redirection to a third-party application is not allowed in API version 11 or later." }, + "Redirection to a third-party application is not allowed in API version greater than 11." }, { ERR_ABILITY_RUNTIME_EXTERNAL_CANNOT_MATCH_ANY_COMPONENT, "No matching ability is found." }, { ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_URI_FLAG, -- Gitee