sindresorhus/aggregate-error

Add message argument

Open

#12 ouverte le 10 mars 2020

Voir sur GitHub
 (1 commentaire) (1 réaction) (0 assignés)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.

Guide contributeur