Skip to content

Commit

Permalink
add error handling back
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Jul 19, 2024
1 parent 8fa7d00 commit 22fdde6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/build/common.mts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,17 @@ export async function buildOrWatchAll() {
const contexts = await Promise.all(builds.map(context));
await Promise.all(contexts.map(ctx => ctx.watch()));
} else {
await Promise.all(builds.map(build));
try {
await Promise.all(builds.map(build));
} catch (err) {
const reason = err instanceof Error
? err.message
: err;

console.error("Build failed");
console.error(reason);
// make ci fail
process.exitCode = 1;
}
}
}

0 comments on commit 22fdde6

Please sign in to comment.