Skip to content

Commit

Permalink
refactor(core): log Docusaurus & Node version before exiting (#7781)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Jul 14, 2022
1 parent 965a01e commit 1065e55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docusaurus/bin/docusaurus.mjs
Expand Up @@ -217,5 +217,7 @@ cli.parse(process.argv);

process.on('unhandledRejection', (err) => {
logger.error(err instanceof Error ? err.stack : err);
logger.info`Docusaurus version: number=${DOCUSAURUS_VERSION}
Node version: number=${process.version}`;
process.exit(1);
});

0 comments on commit 1065e55

Please sign in to comment.