sindresorhus/aggregate-error

Add message argument

Open

#12 aperta il 10 mar 2020

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)JavaScript (18 fork)user submission
enhancementhelp wanted

Metriche repository

Star
 (247 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor