mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-08 14:47:12 +02:00
fix(cli): always show error stack to unhandled rejection (#7218)
This commit is contained in:
parent
42ca13fadf
commit
97f7b45f1a
1 changed files with 1 additions and 1 deletions
|
@ -274,6 +274,6 @@ if (!process.argv.slice(2).length) {
|
||||||
cli.parse(process.argv);
|
cli.parse(process.argv);
|
||||||
|
|
||||||
process.on('unhandledRejection', (err) => {
|
process.on('unhandledRejection', (err) => {
|
||||||
logger.error(err);
|
logger.error(err instanceof Error ? err.stack : err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue