sindresorhus/aggregate-error

Add message argument

Open

#12 aberto em 10 de mar. de 2020

Ver no GitHub
 (1 comment) (1 reaction) (0 assignees)JavaScript (18 forks)user submission
enhancementhelp wanted

Métricas do repositório

Stars
 (247 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador