diff --git a/frameworks/js/napi/include/sensor_napi_error.h b/frameworks/js/napi/include/sensor_napi_error.h index 1ca9d63d54a4cd7b7e083f991b034428d91de4bf..f1fb4c24da0f76921149815218b13011a2956511 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."},