mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-04 05:22:25 +00:00
log
Signed-off-by: sodanotgreen <limengzheng@huawei.com>
This commit is contained in:
parent
feda05523f
commit
543665939d
@ -388,13 +388,13 @@ napi_value NAPI_PrintDrawnCompletedWrap(napi_env env, napi_callback_info info, A
|
||||
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &jsthis, &data));
|
||||
|
||||
if (argc > ARGS_ONE) {
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "arguments is invalid");
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "invalid argc");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (argc == ARGS_ONE) {
|
||||
if (!CreateAsyncCallback(env, args[PARAM0], asyncCallbackInfo)) {
|
||||
TAG_LOGI(AAFwkTag::JSNAPI, "the first argument is invalid");
|
||||
TAG_LOGI(AAFwkTag::JSNAPI, "args[PARAM0] invalid");
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -116,12 +116,12 @@ bool CheckAbilityType(const AsyncJSCallbackInfo *asyncCallbackInfo)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::JSNAPI, "start");
|
||||
if (asyncCallbackInfo == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "asyncCallbackInfo == null");
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "null asyncCallbackInfo");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (asyncCallbackInfo->ability == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "ability == null");
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "null ability");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -294,7 +294,7 @@ void GetFilesDirExecuteCallback(napi_env, void *data)
|
||||
asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR;
|
||||
asyncCallbackInfo->native_data.data_type = NVT_NONE;
|
||||
if (asyncCallbackInfo->ability == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "ability == null");
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "null ability");
|
||||
asyncCallbackInfo->error_code = NAPI_ERR_ACE_ABILITY;
|
||||
return;
|
||||
}
|
||||
@ -477,7 +477,7 @@ void GetExternalCacheDirExecuteCallback(napi_env, void *data)
|
||||
asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR;
|
||||
asyncCallbackInfo->native_data.data_type = NVT_NONE;
|
||||
if (asyncCallbackInfo->ability == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "ability == null");
|
||||
TAG_LOGE(AAFwkTag::JSNAPI, "null ability");
|
||||
asyncCallbackInfo->error_code = NAPI_ERR_ACE_ABILITY;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user