From 375a25511ad8846c0ad49f5117245904412c60b8 Mon Sep 17 00:00:00 2001 From: Igor Octaviano Date: Wed, 6 May 2020 22:54:19 -0300 Subject: [PATCH] Update docs about transform What about this second property? locally it was necessary to be added, this part is not clear. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05dfe45..f3b585e 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,7 @@ const { errors } = format; const errorsFormat = errors({ stack: true }) -const info = errorsFormat.transform(new Error('Oh no!')); +const info = errorsFormat.transform(new Error('Oh no!'), errorsFormat.options); console.log(info); // Error: Oh no!