From 3c3d71e854604b51d1f5c31bda9fde08009b68b1 Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Thu, 28 May 2020 18:17:57 -0700 Subject: [PATCH] doc: rename warn-with-error to warn-with-error-code --- surveys/promise-rejections/survey.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surveys/promise-rejections/survey.md b/surveys/promise-rejections/survey.md index b5d12468..ae6b3242 100644 --- a/surveys/promise-rejections/survey.md +++ b/surveys/promise-rejections/survey.md @@ -244,7 +244,7 @@ Consider the following modes: - `strict`: raise an uncaught exception similar to `throw new Error()` that is not caught. `unhandledRejection` listeners do not prevent raising the exception - `throw`: raise an uncaught exception similar to `throw new Error()` that is not caught. `unhandledRejection` listeners take precedence and prevent raising the exception - `warn`: outputs a warning as soon as possible. Continues running after the warning is emitted. If the process exits and no status code was set, the process exits with a success code. This is similar to what browser consoles do - - `warn-with-error`: outputs a warning as soon as possible. Continues running after the warning is emitted. If the process exits and no status code was set, the process exits with an error code + - `warn-with-error-code`: outputs a warning as soon as possible. Continues running after the warning is emitted. If the process exits and no status code was set, the process exits with an error code - `none`: do nothing For all the modes, the action (raise an exception output a warning) will happen on `nextTick`. @@ -254,6 +254,6 @@ Which one you think should be the default on Node.js? - [ ] `strict` - [ ] `throw` - [ ] `warn` - - [ ] `warn-with-error` + - [ ] `warn-with-error-code` - [ ] `none` - [ ] Other (please elaborate)