From 4fb419b04ea23c40f15b6e570a35cb31723c63ee Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 15 Jul 2022 00:36:57 +0800 Subject: [PATCH] refactor(core): log Docusaurus & Node version before exiting --- packages/docusaurus/bin/docusaurus.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/docusaurus/bin/docusaurus.mjs b/packages/docusaurus/bin/docusaurus.mjs index 928dbe9c8f02..a9df67b31e6d 100755 --- a/packages/docusaurus/bin/docusaurus.mjs +++ b/packages/docusaurus/bin/docusaurus.mjs @@ -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); });