diff --git a/src/index.ts b/src/index.ts index 72c146839..114217219 100755 --- a/src/index.ts +++ b/src/index.ts @@ -39,6 +39,8 @@ process.on("SIGINT", (_: string, code: number) => { } catch (e: any) { if (e instanceof AssertionError) { process.stderr.write(chalk`{red ${e.message.trim()}}\n`); + } else if (e instanceof AggregateError) { + e.errors.forEach((aggE) => process.stderr.write(chalk`{red ${aggE.stack ?? aggE}}\n`)); } else { process.stderr.write(chalk`{red ${e.stack ?? e}}\n`); }