From 970e91c0e17395af06d5889ec12992e987c6002f Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 11 Dec 2024 10:18:15 +0800 Subject: [PATCH] fix runtime web adapter fetch error (#18020) Co-authored-by: zhiming.wu --- scripts/fetch-ral.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/fetch-ral.js b/scripts/fetch-ral.js index cb1edeaf530..f0d9435ec68 100644 --- a/scripts/fetch-ral.js +++ b/scripts/fetch-ral.js @@ -95,9 +95,13 @@ function runCommand (cmd, cwd) { console.error(stderr); } }); - ls.stdout.on('close', () => { + ls.on('close', () => { resolve(ls.exitCode); }); + + ls.stderr.on('data', (data) => { + console.error(data); + }); }); }