Skip to content

Commit

Permalink
golantic
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed Jul 21, 2022
1 parent ef13e13 commit 6f1f931
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ const handleError = async (message, error, yargs) => {
console.error('\n' + message);
};

process.on('uncaughtException', (err) => {
handleError('', err, yargs);
process.on('uncaughtException', async (err) => {
await handleError('', err, yargs);
});

process.on('unhandledRejection', (reason) => {
handleError('', new Error(reason), yargs);
process.on('unhandledRejection', async (reason) => {
await handleError('', new Error(reason), yargs);
});

yargs
Expand Down

1 comment on commit 6f1f931

@github-actions

This comment was marked as off-topic.

Please sign in to comment.