CLI: error message is sometimes empty #32237
Labels
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
Sometimes when we print
e.message
, it turns out thate
is anAggregateError
without amessage
defined itself.In those cases, we should probably build a message out of the messages of the errors inside the AggregateError.
I'm not sure where these can originate, but the SDKv3 sometimes produces errors like this.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError
Regression Issue
Last Known Working CDK Version
No response
Framework Version
No response
Node.js Version
OS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: