diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-04-16 16:12:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-16 16:12:26 +0200 |
| commit | a87be28a46b67e53354f8ce69386057ddbb0f46c (patch) | |
| tree | 5615afd3ac57821edd7c782cfe33d253777a8aa3 /cli/tests/testdata/error_cause.ts.out | |
| parent | 0bb96cde726127291dccb62145e76a50b2efcd2f (diff) | |
feat: Better formatting for AggregateError (#14285)
This commit adds "aggregated" field to "deno_core::JsError" that stores
instances of "JsError" recursively to properly handle "AggregateError"
formatting. Appropriate logics was added to "PrettyJsError" and
"console" API to format AggregateErrors.
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Diffstat (limited to 'cli/tests/testdata/error_cause.ts.out')
| -rw-r--r-- | cli/tests/testdata/error_cause.ts.out | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cli/tests/testdata/error_cause.ts.out b/cli/tests/testdata/error_cause.ts.out index 0f32b1bdd..512ab4326 100644 --- a/cli/tests/testdata/error_cause.ts.out +++ b/cli/tests/testdata/error_cause.ts.out @@ -6,12 +6,10 @@ error: Uncaught Error: foo at b (file:///[WILDCARD]/error_cause.ts:7:3) at c (file:///[WILDCARD]/error_cause.ts:11:3) at file:///[WILDCARD]/error_cause.ts:14:1 -Caused by: Uncaught Error: bar - throw new Error("foo", { cause: new Error("bar", { cause: "deno" as any }) }); - ^ +Caused by: Error: bar at a (file:///[WILDCARD]/error_cause.ts:3:35) at b (file:///[WILDCARD]/error_cause.ts:7:3) at c (file:///[WILDCARD]/error_cause.ts:11:3) at file:///[WILDCARD]/error_cause.ts:14:1 -Caused by: Uncaught deno -[WILDCARD]
\ No newline at end of file +Caused by: deno +[WILDCARD] |
