mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 13:33:06 +00:00
fix(cli): log error itself on unhandled rejection (#6607)
This commit is contained in:
parent
a9eb005333
commit
ed34a92957
|
|
@ -254,6 +254,6 @@ async function run() {
|
|||
run();
|
||||
|
||||
process.on('unhandledRejection', (err) => {
|
||||
logger.error(err.stack);
|
||||
logger.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue