1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/cli/tests/testdata/complex_error.ts.out
Bartek Iwańczuk a87be28a46
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>
2022-04-16 16:12:26 +02:00

44 lines
1.3 KiB
Text

AggregateError: foo1
at [WILDCARD]/complex_error.ts:1:15
AggregateError: foo1
AggregateError
Error: qux1
at [WILDCARD]/complex_error.ts:3:25
Error: quux1
at [WILDCARD]/complex_error.ts:3:44
at [WILDCARD]/complex_error.ts:3:5
Error: bar1
at [WILDCARD]/complex_error.ts:4:5
Caused by Error: baz1
at [WILDCARD]/complex_error.ts:4:32
at [WILDCARD]/complex_error.ts:1:15
Caused by AggregateError: foo2
at [WILDCARD]/complex_error.ts:8:12
error: Uncaught AggregateError: foo1
AggregateError
Error: qux1
at [WILDCARD]/complex_error.ts:3:25
Error: quux1
at [WILDCARD]/complex_error.ts:3:44
at [WILDCARD]/complex_error.ts:3:5
Error: bar1
at [WILDCARD]/complex_error.ts:4:5
Caused by: Error: baz1
at [WILDCARD]/complex_error.ts:4:32
const error = new AggregateError(
^
at [WILDCARD]/complex_error.ts:1:15
Caused by: AggregateError: foo2
AggregateError
Error: qux2
at [WILDCARD]/complex_error.ts:9:27
Error: quux2
at [WILDCARD]/complex_error.ts:9:46
at [WILDCARD]/complex_error.ts:9:7
Error: bar2
at [WILDCARD]/complex_error.ts:10:7
Caused by: Error: baz2
at [WILDCARD]/complex_error.ts:10:34
at [WILDCARD]/complex_error.ts:8:12