fix(cli): always show error stack to unhandled rejection (#7218)

This commit is contained in:
Joshua Chen 2022-04-21 12:54:27 +08:00 committed by GitHub
parent 42ca13fadf
commit 97f7b45f1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,6 +274,6 @@ if (!process.argv.slice(2).length) {
cli.parse(process.argv);
process.on('unhandledRejection', (err) => {
logger.error(err);
logger.error(err instanceof Error ? err.stack : err);
process.exit(1);
});