diff --git a/build-tools/api_check_plugin/entry.js b/build-tools/api_check_plugin/entry.js index 5d03e2948b8d20ca0315ad87702d0698252c20b8..849416c805b4ec84730b5bd581f4f3902542a718 100644 --- a/build-tools/api_check_plugin/entry.js +++ b/build-tools/api_check_plugin/entry.js @@ -26,12 +26,12 @@ function checkEntry(url) { result = scanEntry(url); const content = fs.readFileSync(path.resolve(__dirname, "./Result.txt"), "utf-8"); result += `mdFilePath = ${url}, content = ${content}` - writeResultFile(result, path.resolve(__dirname, "./Result.txt"), {}); const { removeDir } = require(path.resolve(__dirname, "./src/utils")); removeDir(path.resolve(__dirname, "node_modules")); } catch (error) { // catch error - result = 'ERROR'; + result = `CATCHERROR : ${error}`; } + writeResultFile(result, path.resolve(__dirname, "./Result.txt"), {}); } checkEntry(process.argv[2]);