mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 18:17:48 -05:00
a87be28a46
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>
18 lines
604 B
Text
18 lines
604 B
Text
AggregateError: Multiple errors.
|
|
at [WILDCARD]/aggregate_error.ts:1:24
|
|
|
|
AggregateError: Multiple errors.
|
|
Error: Error message 1.
|
|
at [WILDCARD]/aggregate_error.ts:2:3
|
|
Error: Error message 2.
|
|
at [WILDCARD]/aggregate_error.ts:3:3
|
|
at [WILDCARD]/aggregate_error.ts:1:24
|
|
|
|
error: Uncaught AggregateError: Multiple errors.
|
|
Error: Error message 1.
|
|
at [WILDCARD]/aggregate_error.ts:2:3
|
|
Error: Error message 2.
|
|
at [WILDCARD]/aggregate_error.ts:3:3
|
|
const aggregateError = new AggregateError([
|
|
^
|
|
at [WILDCARD]/aggregate_error.ts:1:24
|