Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: handle AggregateErrors #91

Open
sandinmyjoints opened this issue Oct 2, 2023 · 0 comments
Open

Feature request: handle AggregateErrors #91

sandinmyjoints opened this issue Oct 2, 2023 · 0 comments

Comments

@sandinmyjoints
Copy link

sandinmyjoints commented Oct 2, 2023

Currently, as far as I can tell, AggregateErrors get serialized like this, no matter what errors they contain:

{
  name: 'AggregateError',
  message: '',
  stack: 'AggregateError\n' +
    '    at REPL4:1:24\n' +
    '    at Script.runInThisContext (node:vm:129:12)\n' +
    '    at REPLServer.defaultEval (node:repl:572:29)\n' +
    '    at bound (node:domain:433:15)\n' +
    '    at REPLServer.runBound [as eval] (node:domain:444:12)\n' +
    '    at REPLServer.onLine (node:repl:902:10)\n' +
    '    at REPLServer.emit (node:events:525:35)\n' +
    '    at REPLServer.emit (node:domain:489:12)\n' +
    '    at [_onLine] [as _onLine] (node:internal/readline/interface:422:12)\n' +
    '    at [_line] [as _line] (node:internal/readline/interface:892:18)'
}

(This is with Node 18.14.2, but I don't think anything materially different will happen on a different runtime.)

Can the errors array get serialized nicely?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants