summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/aggregate_error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/aggregate_error.ts')
-rw-r--r--cli/tests/testdata/aggregate_error.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/aggregate_error.ts b/cli/tests/testdata/aggregate_error.ts
new file mode 100644
index 000000000..ce4b54376
--- /dev/null
+++ b/cli/tests/testdata/aggregate_error.ts
@@ -0,0 +1,9 @@
+const aggregateError = new AggregateError([
+ new Error("Error message 1."),
+ new Error("Error message 2."),
+], "Multiple errors.");
+console.log(aggregateError.stack);
+console.log();
+console.log(aggregateError);
+console.log();
+throw aggregateError;