mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
refactor(core): log Docusaurus & Node version before exiting (#7781)
This commit is contained in:
parent
965a01e589
commit
1065e558d2
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue