Skip to content

Commit c2e3985

Browse files
committed
chore(scripts/website): catch errors and print them
With correct stack instead of stack for "unhandled rejection"
1 parent 0d20dae commit c2e3985

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/website.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,10 @@ if (isMain) {
615615
}
616616

617617
console.log('Done Processing');
618-
})();
618+
})().catch((err) => {
619+
console.error('Website Generation failed:', err);
620+
process.exit(-1);
621+
});
619622
}
620623

621624
// Modified from github-slugger

0 commit comments

Comments
 (0)