diff --git a/scripts/run-typecheck-build-gaps.mjs b/scripts/run-typecheck-build-gaps.mjs index 8ab72ea0284..74aafa6a5ec 100644 --- a/scripts/run-typecheck-build-gaps.mjs +++ b/scripts/run-typecheck-build-gaps.mjs @@ -16,6 +16,11 @@ function run(command, args) { stdio: "inherit", }); + if (result.error) { + console.error(`[typecheck:build-gaps] Failed to spawn ${command}: ${result.error.message}`); + process.exit(1); + } + if (result.status !== 0) { process.exit(result.status ?? 1); }