diff --git a/gulpfile.js b/gulpfile.js index b14c37237d0..838e8999994 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -77,7 +77,8 @@ gulp.task('build-h5-source', gulp.series('build-debug-infos', async () => { }); }); if (exitCode) { - throw new Error(`Build process exit with ${exitCode}`); + console.error(`Build process exit with ${exitCode}`); + process.exit(exitCode); } }));