diff --git a/scripts/check-generated-bindings.mjs b/scripts/check-generated-bindings.mjs index 3533f88a6..cda910285 100644 --- a/scripts/check-generated-bindings.mjs +++ b/scripts/check-generated-bindings.mjs @@ -117,12 +117,13 @@ for (const target of targets) { ); const result = run('cargo', target.cargoArgs); if (result.status !== 0) { + failed = true; console.error( `生成绑定校验无法运行:${target.label} 的 export_bindings 未通过`, ); if (result.stdout) console.error(result.stdout.trim()); if (result.stderr) console.error(result.stderr.trim()); - process.exit(result.status ?? 1); + continue; } if (target.formatDirs.length > 0) { const formatted = run(npxCommand, [ @@ -131,12 +132,13 @@ for (const target of targets) { ...target.formatDirs, ]); if (formatted.status !== 0) { + failed = true; console.error( `生成绑定校验无法运行:${target.label} 的 prettier 格式化失败`, ); if (formatted.stdout) console.error(formatted.stdout.trim()); if (formatted.stderr) console.error(formatted.stderr.trim()); - process.exit(formatted.status ?? 1); + continue; } } const after = new Map(