aggregate-error
aggregate-error copied to clipboard
Create an error from multiple errors
When used with mocha the errors are displayed twice. Is there a way to have it only display once? ```javascript const AggregateError = require('aggregate-error') it('should fail', function() { throw new...
Add a message argument to bring the constructor in line with the [TC39 AggregateError proposal](https://tc39.es/proposal-promise-any/#sec-aggregate-error-constructor). Before ```js new AggregateError(errors) ``` After ```js new AggregateError(errors[, message]) ``` The message is simply...