fix(cli): log error itself on unhandled rejection (#6607)

This commit is contained in:
Joshua Chen 2022-02-04 23:33:34 +08:00 committed by GitHub
parent a9eb005333
commit ed34a92957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,6 +254,6 @@ async function run() {
run();
process.on('unhandledRejection', (err) => {
logger.error(err.stack);
logger.error(err);
process.exit(1);
});