Skip to content

Commit 5583e87

Browse files
committed
chore(scripts/reorder-search-index): catch + log error
1 parent 7ae1ab3 commit 5583e87

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: scripts/reorder-search-index.mjs

+8-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@ async function main() {
2525
writeFileSync(outputPath ?? inputPath, JSON.stringify(result), "utf-8");
2626
}
2727

28-
main();
28+
try {
29+
main();
30+
} catch (e) {
31+
console.error(e);
32+
if (process.env.GITHUB_ACTIONS) {
33+
console.log(`::error::${e.toString()} `);
34+
}
35+
}

0 commit comments

Comments
 (0)