mirror of
https://gitee.com/openharmony/napi_generator
synced 2025-02-17 07:37:46 +00:00
add log when generating files successfully
Signed-off-by: sunzhongyi <sunzhongyi@kaihongdigi.com>
This commit is contained in:
parent
7f276fd4ac
commit
1fb118900e
@ -45,3 +45,13 @@ else {
|
||||
//print("\n文件名 " + fn + " 校验失败,需要符合 @ohos.input_sample.d.ts")
|
||||
NapiLog.logError("file name " + fn + " format invalid, @ohos.input_sample.d.ts");
|
||||
}
|
||||
|
||||
let ret = NapiLog.getResult()
|
||||
if (ret[0]) {
|
||||
console.log("success")
|
||||
}
|
||||
else {
|
||||
console.log(ret[1])
|
||||
console.log("fail")
|
||||
console.log("fail")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user