update frameworks/js/napi/app/app_manager/js_app_manager.cpp.

Signed-off-by: 夏良伟 <xialiangwei1@huawei.com>
This commit is contained in:
夏良伟 2024-07-27 03:41:53 +00:00
parent 08e89a817b
commit d9201c5b21

View File

@ -401,7 +401,8 @@ private:
if (ret == 0) {
task.Resolve(env, CreateJsValue(env, ret));
} else {
task.Reject(env, CreateJsError(env, ret, "clear up application failed."));
task->Reject(env, CreateJsError(env, AAFwk::CLEAR_APPLICATION_DATA_FAIL,
"clear up application failed."));
}
};