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.
AggregateError
1 parent 8e1c5ad commit 80e997dCopy full SHA for 80e997d
src/utils/index.ts
@@ -57,6 +57,11 @@ export const identifierRegex = /^(?:%|\p{L})[\p{L}\d]*$/u;
57
*/
58
export function stringifyError(error): string {
59
try {
60
+ if (error instanceof AggregateError) {
61
+ // Need to stringify the inner errors
62
+ const errs = error.errors.map(stringifyError).filter((s) => s != "");
63
+ return errs.length ? `AggregateError:\n- ${errs.join("\n- ")}` : "";
64
+ }
65
return (
66
error == undefined
67
? ""
0 commit comments