Skip to content

Commit

Permalink
fix(cli): always show error stack to unhandled rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Apr 21, 2022
1 parent 42ca13f commit 9f3d595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/bin/docusaurus.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,6 @@ if (!process.argv.slice(2).length) {
cli.parse(process.argv);

process.on('unhandledRejection', (err) => {
logger.error(err);
logger.error(err instanceof Error ? err.stack : err);
process.exit(1);
});

0 comments on commit 9f3d595

Please sign in to comment.