From 15f35e1aa59fe8026999b0255635b16761f35cbc Mon Sep 17 00:00:00 2001 From: zhangkaijun Date: Tue, 30 Jan 2024 09:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9readConfig=E4=B8=AD=E5=88=A4?= =?UTF-8?q?=E7=A9=BA=E9=80=BB=E8=BE=91=EF=BC=8C=E8=BE=93=E5=87=BA=E6=98=8E?= =?UTF-8?q?=E7=A1=AE=E7=9A=84log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/cli/ace-build/ace-compiler/index.js | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/ace_tools/lib/src/cli/ace-build/ace-compiler/index.js b/ace_tools/lib/src/cli/ace-build/ace-compiler/index.js index 6fc84ff..13aed69 100755 --- a/ace_tools/lib/src/cli/ace-build/ace-compiler/index.js +++ b/ace_tools/lib/src/cli/ace-build/ace-compiler/index.js @@ -41,13 +41,35 @@ let modulePathList; function readConfig() { try { if (currentSystem === 'HarmonyOS') { - if (!harmonyOsSdkDir || !nodejsDir || !arkuiXSdkDir || !ohpmDir) { - console.error(`Please check HarmonyOS SDK, ArkUI-X SDK, nodejs and ohpm in your environment.`); + if (!harmonyOsSdkDir) { + console.error(`Please check HarmonyOS SDK in your environment.`); + } + if (!arkuiXSdkDir) { + console.error(`Please check ArkUI-X SDK in your environment.`); + } + if (!nodejsDir) { + console.error(`Please check nodejs in your environment.`); + } + if (!ohpmDir) { + console.error(`Please check ohpm in your environment.`); + } + if (!harmonyOsSdkDir || !nodejsDir || !arkuiXSdkDir || !ohpmDir) { return false; } } else { + if (!openHarmonySdkDir) { + console.error(`Please check OpenHarmony SDK in your environment.`); + } + if (!arkuiXSdkDir) { + console.error(`Please check ArkUI-X SDK in your environment.`); + } + if (!nodejsDir) { + console.error(`Please check nodejs in your environment.`); + } + if (!ohpmDir) { + console.error(`Please check ohpm in your environment.`); + } if (!openHarmonySdkDir || !nodejsDir || !arkuiXSdkDir || !ohpmDir) { - console.error(`Please check OpenHarmony SDK, ArkUI-X SDK, nodejs and ohpm in your environment.`); return false; } } -- Gitee