refactor(core): log Docusaurus & Node version before exiting (#7781)

This commit is contained in:
Joshua Chen 2022-07-15 01:50:57 +08:00 committed by GitHub
parent 965a01e589
commit 1065e558d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
});