diff options
| author | Kamil Ogórek <kamil.ogorek@gmail.com> | 2022-12-21 01:18:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-21 01:18:49 +0100 |
| commit | 6a47ffa4d3f180c4807ca17594939b765e15751f (patch) | |
| tree | 0822d7be771008b92991bb526beff89ad4f1dd62 /cli/tests/testdata/run/error_with_errors_prop.js.out | |
| parent | 423474caa88f658477ed9f2df1099b7037166c3a (diff) | |
fix(core): Do not print errors prop for non-AggregateError errors (#17123)
This commit fixes formatting of JSError with "errors" property. Before this
commit all instances of "Error" were treated as if they were "AggregateError"
if they had "errors" property. After this commit only actual instances of
"AggregateError" are formatted in such a way, while instances of "Error"
that have "errors" property are formatted without showing details of "errors".
Diffstat (limited to 'cli/tests/testdata/run/error_with_errors_prop.js.out')
| -rw-r--r-- | cli/tests/testdata/run/error_with_errors_prop.js.out | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/error_with_errors_prop.js.out b/cli/tests/testdata/run/error_with_errors_prop.js.out new file mode 100644 index 000000000..3154e86e6 --- /dev/null +++ b/cli/tests/testdata/run/error_with_errors_prop.js.out @@ -0,0 +1,10 @@ +Error: Error with errors prop. + at [WILDCARD]/error_with_errors_prop.js:1:15 + +Error: Error with errors prop. + at [WILDCARD]/error_with_errors_prop.js:1:15 + +error: Uncaught Error: Error with errors prop. +const error = new Error("Error with errors prop."); + ^ + at [WILDCARD]/error_with_errors_prop.js:1:15 |
