sindresorhus/aggregate-error

Add message argument

Open

#12 opened on Mar 10, 2020

View on GitHub
 (1 comment) (1 reaction) (0 assignees)JavaScript (247 stars) (18 forks)user submission
enhancementhelp wanted

Description

Add a message argument to bring the constructor in line with the TC39 AggregateError proposal.

Before

new AggregateError(errors)

After

new AggregateError(errors[, message])

The message is simply written to error.message property.

Contributor guide

Add message argument · sindresorhus/aggregate-error#12 | Good First Issue