We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096b3b0 commit 72c6057Copy full SHA for 72c6057
src/cli/lib/networkTest.ts
@@ -132,10 +132,17 @@ async function checkTcpHostPort(
132
)})`,
133
);
134
} catch (e: any) {
135
+ let errorMessage = `${e}`;
136
+ if (e instanceof AggregateError) {
137
+ const individualErrors = e.errors
138
+ .map((err, i) => ` ${i + 1}. ${err}`)
139
+ .join("\n");
140
+ errorMessage = `AggregateError with ${e.errors.length} errors:\n${individualErrors}`;
141
+ }
142
return ctx.crash({
143
exitCode: 1,
144
errorType: "transient",
- printedMessage: `FAIL: ${tcpString} connect (${e})`,
145
+ printedMessage: `FAIL: ${tcpString} connect (${errorMessage})`,
146
});
147
}
148
0 commit comments