From e07eb7f846cd1eeec20cc97730d8a4aaeb174984 Mon Sep 17 00:00:00 2001 From: bailu1992 Date: Mon, 28 Apr 2025 21:56:46 +0800 Subject: [PATCH] Add supplementary information on the error message of abnormal service Signed-off-by: bailu1992 --- frameworks/js/napi/include/sensor_napi_error.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/js/napi/include/sensor_napi_error.h b/frameworks/js/napi/include/sensor_napi_error.h index 1ca9d63d..f1fb4c24 100755 --- a/frameworks/js/napi/include/sensor_napi_error.h +++ b/frameworks/js/napi/include/sensor_napi_error.h @@ -25,7 +25,8 @@ namespace OHOS { namespace Sensors { const std::map ERROR_MESSAGES = { - {SERVICE_EXCEPTION, "Service exception."}, + {SERVICE_EXCEPTION, "Service exception.Possible causes:" + "1. Sensor hdf service exception;2. Sensor service ipc exception;3. Sensor data channel exception."}, {PERMISSION_DENIED, "Permission denied."}, {PARAMETER_ERROR, "The parameter invalid."}, {SENSOR_NO_SUPPORT, "The sensor is not supported by the device."}, -- Gitee