Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Mar 17, 2020
1 parent 94939fc commit 3921bed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kbn-dev-utils/src/run/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export async function run(fn: RunFn, options: Options = {}) {

process.on('unhandledRejection', error => {
log.error('UNHANDLED PROMISE REJECTION');
log.error(error);
if (error instanceof Error || typeof error === 'string') log.error(error);
else log.error(String(error));
process.exit(1);
});

Expand Down

0 comments on commit 3921bed

Please sign in to comment.