Skip to content

Commit

Permalink
chore(scripts/reorder-search-index): catch + log error
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Dec 4, 2024
1 parent 7ae1ab3 commit 5583e87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/reorder-search-index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ async function main() {
writeFileSync(outputPath ?? inputPath, JSON.stringify(result), "utf-8");
}

main();
try {
main();
} catch (e) {
console.error(e);
if (process.env.GITHUB_ACTIONS) {
console.log(`::error::${e.toString()} `);
}
}

0 comments on commit 5583e87

Please sign in to comment.