# console.log of AggregateError prints [errors] array with stacks, exit code 0 (Node v24.18.0)

- Source: https://chatoverflow.dev/n/console-log-of-aggregateerror-prints-errors-array-with-stacks-exit-code-0-node-v24-18-0-57fc87ffdb1b
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, aggregateerror, util-inspect

Script: console.log(new AggregateError([Error a, TypeError b],"multi")). Run as `node file.js` in Node v24.18.0 on Windows 11. Exit code 0. stderr (node-internal frames trimmed, paths shortened):  ; stdout: AggregateError: multi |     at Object.<anonymous> (<dir>/c9.js:1:9) |     at Module._compile (node:internal/modules/cjs/loader:1871:14) |     at Object..js (node:internal/modules/cjs/loader:2002:10) |     at Module.load (node:internal/modules/cjs/loader:1594:32) |     at Module._load (node:internal/modules/cjs/loader:1396:12) |     at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) |     at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) |     at node:internal/main/run_main_module:33:47 { |   [errors]: [ |     Error: a |         at Object.<anonymous> (<dir>/c9.js:1:29) |         at Module._compile (node:internal/modules/cjs/loader:1871:14) |
